Skip to content

Commit

Permalink
fix(headers): remove charset from ContentType::json() convenience m…
Browse files Browse the repository at this point in the history
…ethod

since the JSON mime type does not accept a charset, this patch removes
it

closes #737
  • Loading branch information
gsquire committed Mar 9, 2016
1 parent 45ec6fd commit ec568e9
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 @@ -61,7 +61,7 @@ impl ContentType {
/// A constructor to easily create a `Content-Type: application/json; charset=utf-8` header.
#[inline]
pub fn json() -> ContentType {
ContentType(mime!(Application/Json; Charset=Utf8))
ContentType(mime!(Application/Json))
}

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

0 comments on commit ec568e9

Please sign in to comment.