From d1b47f8908f7ca71da1f767432bb33cb87bbee14 Mon Sep 17 00:00:00 2001 From: Steven Pease Date: Sun, 10 Mar 2019 12:26:00 -0700 Subject: Default to UTF-8 mime type for actix-web and gotham --- testing/tests/gotham.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'testing/tests/gotham.rs') diff --git a/testing/tests/gotham.rs b/testing/tests/gotham.rs index f127d59..225a0ef 100644 --- a/testing/tests/gotham.rs +++ b/testing/tests/gotham.rs @@ -31,7 +31,10 @@ fn test_gotham() { let content_type = headers .get("content-type") .expect("Response did not contain content-type header"); - assert_eq!(content_type.to_str().unwrap(), mime::TEXT_HTML.to_string()); + assert_eq!( + content_type.to_str().unwrap(), + mime::TEXT_HTML_UTF_8.to_string() + ); } let body = res.read_utf8_body().expect("failed to read response body"); -- cgit