Skip to content

Commit

Permalink
fix(header): remove charset=utf8 from ContentType::text()
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Mar 23, 2018
1 parent 1f53c33 commit ba789e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/header/common/content_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ba789e6

Please sign in to comment.