-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Don't set CONTENT_TYPE / CONTENT_LENGTH if they're not provided by the client #1056
Conversation
Thanks for this PR, please rebase against
|
@untitaker all set |
Could you additionally verify that the tests fail without the fix applied? Thanks! |
@untitaker oh I've made a mistake, the key in made a new push |
ping @untitaker |
Thanks! |
Earlier versions of Werkzerg created a default of '' for the CONTENT_LENGTH environ var if the client did not provide the header. See pallets/werkzeug#1056
Fix: #1049
according to (PEP333)(https://www.python.org/dev/peps/pep-0333/#environ-variables) it's ok if they're absent