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

Version 0.4.1 breaks on Python 2.7 because of byte representation #16

Open
khuumi opened this issue May 23, 2019 · 1 comment
Open

Version 0.4.1 breaks on Python 2.7 because of byte representation #16

khuumi opened this issue May 23, 2019 · 1 comment

Comments

@khuumi
Copy link

khuumi commented May 23, 2019

Your newest changes cause things to break with our Python 2.7 codebase when we are sending bytes. Python 2.7 bytes are type str so when you do the check on wsgiadapter.py#L112 it thinks what is being passed in is a string, tries to encode it as UTF-8 and then fails.

@seanbrant
Copy link
Owner

@khuumi Can you provide failing example code? That would help me write a testcase and get a fix released.

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

No branches or pull requests

2 participants