We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ContentType::text()
1 parent 1f53c33 commit ba789e6Copy full SHA for ba789e6
src/header/common/content_type.rs
@@ -77,7 +77,7 @@ impl ContentType {
77
/// A constructor to easily create a `Content-Type: text/plain` header.
78
#[inline]
79
pub fn text() -> ContentType {
80
- ContentType(mime::TEXT_PLAIN_UTF_8)
+ ContentType(mime::TEXT_PLAIN)
81
}
82
83
/// A constructor to easily create a `Content-Type: text/plain; charset=utf-8` header.
0 commit comments