Strip out the UTF8 BOM when encoding is 'utf8' #371

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

kppullin commented Nov 14, 2012

Some frameworks, such as .NET in my case, often emit the UTF8 byte-order-mark in the HTTP response.

This commit strips out the BOM when the encoding is set to 'utf8' and improves compatibility with external services.

Owner

mikeal commented Mar 1, 2013

this doesn't merge cleanly, please reopen when it does.

@mikeal mikeal closed this Mar 1, 2013

kppullin added a commit to kppullin/request that referenced this pull request Mar 4, 2013

Strip the UTF8 BOM from a UTF encoded response
Some frameworks, such as .NET, often emit the UTF8 byte-order-mark in
the HTTP response.

This commit strips out the BOM when the encoding is set to 'utf8' and
improves compatibility with external services.

(This is a copy of a previous commit for issue #371, which no longer
cleanly applies and requires a refresh).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment