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

merged 1 commit into from Jan 28, 2016


None yet

3 participants


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.

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

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

@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.


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


Awesome, thanks much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment