From 82c888df22d4a7edefbfdef14f80bb8715b84d17 Mon Sep 17 00:00:00 2001 From: axon-q Date: Thu, 7 Jun 2018 09:10:46 +0000 Subject: [PATCH] fix test --- src/header/common/content_disposition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/common/content_disposition.rs b/src/header/common/content_disposition.rs index 4d1a0c6d2..b26644e58 100644 --- a/src/header/common/content_disposition.rs +++ b/src/header/common/content_disposition.rs @@ -213,7 +213,7 @@ mod tests { fn test_from_raw() { 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 b = ContentDisposition { disposition: DispositionType::Ext("form-data".to_owned()),