Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't add a charset if none is specified and the content-type is JSON. #197

Merged
merged 1 commit into from
Jan 28, 2016

Conversation

quantum-omega
Copy link
Contributor

Fixes #196. If a charset is already specified in the content-type, I opted to leave it there. Else, no charset will be added to the content-type line when the the effective content-type is JSON.

I also reworked the content-type-checking condition make it more legible.

@digitalresistor digitalresistor added this to the Version 1.6 milestone Dec 29, 2015
@digitalresistor digitalresistor merged commit 986bc21 into Pylons:master Jan 28, 2016
@mattdrayer
Copy link

@bertjwregeer -- this is a bit of a shot in the dark, I think, but I am wondering if you might be willing to add some context to an Open edX component PR related to this particular webob change.

@digitalresistor
Copy link
Member

@mattdrayer Yep, with pleasure. Will update whatsnew-1.6 to further clarify why we removed it.

@mattdrayer
Copy link

Awesome, thanks much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON content shouldn't need a UTF-8 on the content-type
3 participants