From 7235c6326f523eb9cf89203f017cb75bddc140d5 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 3 Mar 2020 14:03:56 -0800 Subject: [PATCH] Update fs tests due to markdown mime guess change (#468) --- tests/fs.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/fs.rs b/tests/fs.rs index 92553270a..33959f60e 100644 --- a/tests/fs.rs +++ b/tests/fs.rs @@ -17,9 +17,15 @@ 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); }