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

Defaults in dummyserver will fail to decode on Python3 #1258

Closed
reversefold opened this issue Sep 6, 2017 · 0 comments
Closed

Defaults in dummyserver will fail to decode on Python3 #1258

reversefold opened this issue Sep 6, 2017 · 0 comments

Comments

@reversefold
Copy link
Contributor

I found this while working on #1257

Most of the defaults given to request.params.get() are strings rather than bytes. Some of these then have decode() called on them, which fails as you can only decode bytes, not strings. These function work fine if a value is passed in but if no value is passed in they will error out with

AttributeError: 'str' object has no attribute 'decode'
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