Skip to content

Fix the string_types / text_types confusion introduced in #4025 #4035

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

Merged
merged 1 commit into from
Apr 7, 2016

Conversation

xordoquy
Copy link
Collaborator

@xordoquy xordoquy commented Apr 5, 2016

Description

#4025 introduced a string_types comparison before encoding headers data. However, string_types are both binary and unicode in Python 2 and we don't want to encode binary data.

This change fixes that error by using text_types instead.

@xordoquy xordoquy added this to the 3.4.0 Release milestone Apr 5, 2016
@tomchristie tomchristie merged commit 019c6db into encode:master Apr 7, 2016
@tomchristie
Copy link
Member

Thanks!

xordoquy added a commit that referenced this pull request Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants