requests-wsgi-adapter icon indicating copy to clipboard operation
requests-wsgi-adapter copied to clipboard

Version 0.4.1 breaks on Python 2.7 because of byte representation

Open khuumi opened this issue 5 years ago • 1 comments

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.

khuumi avatar May 23 '19 11:05 khuumi

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

seanbrant avatar May 26 '19 15:05 seanbrant