We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c02ce2 commit 37887c6Copy full SHA for 37887c6
tests/response.rs
@@ -20,7 +20,7 @@ async fn byte_vec_content_type() {
20
if let Some(x) = resp.remove_header(&content_type) {
21
header_values = x;
22
}
23
- assert_eq!(header_values[0], "application/octet-stream");
+ assert_eq!(header_values[0], mime::APPLICATION_OCTET_STREAM.to_string());
24
let foo = resp.take_body().into_string().await.unwrap();
25
assert_eq!(foo.as_bytes(), b"foo");
26
@@ -36,7 +36,7 @@ async fn string_content_type() {
36
37
38
39
- assert_eq!(header_values[0], "text/plain; charset=utf-8");
+ assert_eq!(header_values[0], mime::TEXT_PLAIN_UTF_8.to_string());
40
41
42
0 commit comments