diff --git a/tests/fs.rs b/tests/fs.rs index 43d11f4be..738ec06d6 100644 --- a/tests/fs.rs +++ b/tests/fs.rs @@ -14,9 +14,15 @@ async fn file() { let contents = fs::read("README.md").expect("fs::read README.md"); assert_eq!(res.headers()["content-length"], contents.len().to_string()); - assert_eq!(res.headers()["content-type"], "text/x-markdown"); assert_eq!(res.headers()["accept-ranges"], "bytes"); + let ct = &res.headers()["content-type"]; + assert!( + ct == "text/x-markdown" || ct == "text/markdown", + "content-type is not markdown: {:?}", + ct, + ); + assert_eq!(res.body(), &*contents); }