mirror of
https://github.com/actix/actix-extras.git
synced 2024-12-01 02:44:37 +01:00
fix test
This commit is contained in:
parent
936ba2a368
commit
82c888df22
@ -213,7 +213,7 @@ mod tests {
|
|||||||
fn test_from_raw() {
|
fn test_from_raw() {
|
||||||
assert!(ContentDisposition::from_raw(Some(&HeaderValue::from_static(""))).is_err());
|
assert!(ContentDisposition::from_raw(Some(&HeaderValue::from_static(""))).is_err());
|
||||||
|
|
||||||
let a = HeaderValue::from_static("form-data; dummy=3; name=upload;\r\n filename=\"sample.png\"");
|
let a = HeaderValue::from_static("form-data; dummy=3; name=upload; filename=\"sample.png\"");
|
||||||
let a: ContentDisposition = ContentDisposition::from_raw(Some(&a)).unwrap();
|
let a: ContentDisposition = ContentDisposition::from_raw(Some(&a)).unwrap();
|
||||||
let b = ContentDisposition {
|
let b = ContentDisposition {
|
||||||
disposition: DispositionType::Ext("form-data".to_owned()),
|
disposition: DispositionType::Ext("form-data".to_owned()),
|
||||||
|
Loading…
Reference in New Issue
Block a user