Bugzilla – Bug 933
Make ContentTypeParser a more useful, error-reporting parser
Last modified: 2012-07-30 17:31:37 CEST
RFC 2616 does not allow white space around the "=" sign in parameters, and most browsers ignore the value of the charset parameter if is has white space around the "=" sign. Test case here: http://greenbytes.de/tech/tc/httpcontenttype/#textplainutf8ws Results here: http://greenbytes.de/tech/tc/httpcontenttype/textplainutf8ws.asis Excerpt from the part of RFC 2616 that states the requirement: http://tools.ietf.org/html/rfc2616#section-3.7 "Linear white space (LWS) MUST NOT be used between the type and subtype, nor between an attribute and its value."
Repurposing this bug for recording changes made to turn ContentTypeParser a more useful, error-reporting parser.
https://bitbucket.org/validator/util/changeset/76a6ed6e796c2c3e50ceb0865169b0fe6ae1145f