Skip to content

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

Merged
digitalresistor merged 1 commit into
Pylons:masterfrom
quantum-omega:issue1611
Jan 28, 2016
Merged

Don't add a charset if none is specified and the content-type is JSON.#197
digitalresistor merged 1 commit into
Pylons:masterfrom
quantum-omega:issue1611

Conversation

@quantum-omega
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
Member

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

@mattdrayer
Copy link
Copy Markdown

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