Merge pull request #745 from dbrgn/json-comment

Remove "charset" from ContentType::json() docs
This commit is contained in:
Sean McArthur
2016-03-15 09:04:39 -07:00

View File

@@ -58,7 +58,7 @@ header! {
} }
impl ContentType { impl ContentType {
/// A constructor to easily create a `Content-Type: application/json; charset=utf-8` header. /// A constructor to easily create a `Content-Type: application/json` header.
#[inline] #[inline]
pub fn json() -> ContentType { pub fn json() -> ContentType {
ContentType(mime!(Application/Json)) ContentType(mime!(Application/Json))