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
Flask 0.10.x and Werkzeug 0.9.x encoding issue #772
Comments
Is a non-latin1 User-Agent even allowed? |
@DasIch no idea, but this worked with Flask 0.9 and Werkzeug 0.8.x, fwiw. |
HTTP does not allow non latin1 headers out of the box. We changed the default encoding to latin1 because that's what WSGI on Python 3 does as well. For certain headers custom behavior is applied. For instance setting cookies to utf-8 values is allowed by tunneling it through latin1. The correct solution for non latin1 headers is this RFC: http://tools.ietf.org/html/rfc5987 - we might implement that at a later point. |
It would be nice if this bug were kept open given that this breaks functionality from werkzeug 0.8.x; at least until RFC 5987 is implemented. |
This appears to be an issue with how Werkzeug is encoding headers, new to the version series 0.9.x:
This affects maxcountryman/flask-login#78.
The text was updated successfully, but these errors were encountered: