Skip to content

Commit ba789e6

Browse files
committed
fix(header): remove charset=utf8 from ContentType::text()
1 parent 1f53c33 commit ba789e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/header/common/content_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl ContentType {
7777
/// A constructor to easily create a `Content-Type: text/plain` header.
7878
#[inline]
7979
pub fn text() -> ContentType {
80-
ContentType(mime::TEXT_PLAIN_UTF_8)
80+
ContentType(mime::TEXT_PLAIN)
8181
}
8282

8383
/// A constructor to easily create a `Content-Type: text/plain; charset=utf-8` header.

0 commit comments

Comments
 (0)