Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

fix issue of inexplicitly concatenating str to unicode in httplib#651

Open
jmp0xf wants to merge 1 commit intogetsentry:masterfrom
jmp0xf:master
Open

fix issue of inexplicitly concatenating str to unicode in httplib#651
jmp0xf wants to merge 1 commit intogetsentry:masterfrom
jmp0xf:master

Conversation

@jmp0xf
Copy link
Copy Markdown

@jmp0xf jmp0xf commented Sep 5, 2015

Due to commit a76101f, now encoded post data is a string containing non-ascii character. Which could be a problem where httplib in Python 2.7 tries to concatenate message_body to msg, since msg is unicode, message_body has to be converted to unicode first, however since it is not an ascii string, decoding as ascii would fail and throw an exception.

ref: https://bitbucket.org/jurko/suds/issues/10/unicodeerror-is-raised-when-sending-non

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant