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

Make the url a bytestring #15

Merged
merged 1 commit into from
Jul 22, 2013
Merged

Conversation

shalabhaggarwal
Copy link
Contributor

The URL should be a bytestring rather than a unicode because if its a unicode then the type of msg in httplib _send_output() becomes unicode which in turn tries to concatinate message_body which is a bytestring to msg.
Here if the message_body contains a non ascii character, the concatination fails.
Hence a URL in bytestring will make sure everything remains a bytestring

Task: project-1735/task-2030

The URL should be a bytestring rather than a unicode because if its a unicode then the type of msg in httplib _send_output() becomes unicode which in turn tries to concatinate message_body which is a bytestring to msg.
Here if the message_body contains a non ascii character, the concatination fails.
Hence a URL in bytestring will make sure everything remains a bytestring
sharoonthomas pushed a commit that referenced this pull request Jul 22, 2013
@sharoonthomas sharoonthomas merged commit 6d27d12 into openlabs:develop Jul 22, 2013
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.

2 participants