Skip to content

Stop Decoding Values #49

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

Open
dstufft opened this issue Jul 5, 2014 · 1 comment
Open

Stop Decoding Values #49

dstufft opened this issue Jul 5, 2014 · 1 comment

Comments

@dstufft
Copy link

dstufft commented Jul 5, 2014

Currently http-parser converts certain values to str on Python3 instead of leaving them as bytes. This allows treating things which are pure ASCII as strings, however in order to do anything more complex than that is requires an encoding dance to go back to bytes by encoding with latin1 again, and then potentially decoding them again with a different encoding. It would be nice if http-parser at least allowed disabling the decoding if not just stopped doing it altogether.

dstufft added a commit to dstufft/stein that referenced this issue Jul 5, 2014
@benoitc
Copy link
Owner

benoitc commented Apr 17, 2020

should probably only decoded to latin1 if needed... not sure about keeping them as bytes though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants