File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ async fn byte_vec_content_type() {
20
20
if let Some ( x) = resp. remove_header ( & content_type) {
21
21
header_values = x;
22
22
}
23
- assert_eq ! ( header_values[ 0 ] , "application/octet-stream" ) ;
23
+ assert_eq ! ( header_values[ 0 ] , mime :: APPLICATION_OCTET_STREAM . to_string ( ) ) ;
24
24
let foo = resp. take_body ( ) . into_string ( ) . await . unwrap ( ) ;
25
25
assert_eq ! ( foo. as_bytes( ) , b"foo" ) ;
26
26
}
@@ -36,7 +36,7 @@ async fn string_content_type() {
36
36
if let Some ( x) = resp. remove_header ( & content_type) {
37
37
header_values = x;
38
38
}
39
- assert_eq ! ( header_values[ 0 ] , "text/plain; charset=utf-8" ) ;
39
+ assert_eq ! ( header_values[ 0 ] , mime :: TEXT_PLAIN_UTF_8 . to_string ( ) ) ;
40
40
let foo = resp. take_body ( ) . into_string ( ) . await . unwrap ( ) ;
41
41
assert_eq ! ( foo. as_bytes( ) , b"foo" ) ;
42
42
}
You can’t perform that action at this time.
0 commit comments