From ba789e6552eb74afb98f4d462d5c06c6643535d3 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 22 Mar 2018 17:06:43 -0700 Subject: [PATCH] fix(header): remove charset=utf8 from `ContentType::text()` --- src/header/common/content_type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/common/content_type.rs b/src/header/common/content_type.rs index 899decc265..8293382a6f 100644 --- a/src/header/common/content_type.rs +++ b/src/header/common/content_type.rs @@ -77,7 +77,7 @@ impl ContentType { /// A constructor to easily create a `Content-Type: text/plain` header. #[inline] pub fn text() -> ContentType { - ContentType(mime::TEXT_PLAIN_UTF_8) + ContentType(mime::TEXT_PLAIN) } /// A constructor to easily create a `Content-Type: text/plain; charset=utf-8` header.