Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Don't die if a charset param exists along w/ mediatype #30
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Thanks! I think it's nice to support Chrome, even with the strict flag on.
But, I think the super strict version of the content-type is "application/json" without the charset.
In that case, the error message should suggest "application/json"
Error(&writer, "Bad Content-Type, expected 'application/json'", http.StatusUnsupportedMediaType)