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

werkzeug request.query_string is of type str rather than bytes #119

Open
ltalirz opened this issue Jan 18, 2021 · 1 comment
Open

werkzeug request.query_string is of type str rather than bytes #119

ltalirz opened this issue Jan 18, 2021 · 1 comment

Comments

@ltalirz
Copy link

ltalirz commented Jan 18, 2021

This is a repost from tiangolo/meinheld-gunicorn-flask-docker#38 , which was determined to be an issue with meinheld.

When using the flask request object (which comes from the werkzeug library), I find that using the tiangolo/meinheld-gunicorn-flask:python3.8 docker image the request.query_string attribute is of type str, while the werkzeug documentation clearly states that it should be of type bytes:

query_string
The URL parameters as raw bytestring.

This resulted in issues in migrating an existing application to the tiangolo/meinheld-gunicorn-flask:python3.8 docker image, since it tried to decode request.query_string (str objects have no .decode method).

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

1 participant