1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

bump msrv to 1.46 (#1858)

This commit is contained in:
Rob Ede
2020-12-28 00:44:15 +00:00
committed by GitHub
parent 093d3a6c59
commit 2a2a20c3e7
16 changed files with 59 additions and 52 deletions

View File

@ -318,9 +318,8 @@ impl ContentDisposition {
return Err(crate::error::ParseError::Header);
}
left = new_left;
if param_name.ends_with('*') {
if let Some(param_name) = param_name.strip_suffix('*') {
// extended parameters
let param_name = &param_name[..param_name.len() - 1]; // trim asterisk
let (ext_value, new_left) = split_once_and_trim(left, ';');
left = new_left;
let ext_value = header::parse_extended_value(ext_value)?;