You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client did not provide a Content-Length header, but flask creates one that is set to an illegal empty string.
This is problematic for us, because my team decided to use flask as a kind of smart proxy service, so it forwards all the client headers along to the destination, which then rightly complains (per RFC 2616) that it cannot parse the value from the Content-Length header. So we had to write our own code to overwrite flask's version with a correct Content-Length. It would be nicer we did not artificially create this header, or at the very least, set it to a valid value (zero in this case).
The text was updated successfully, but these errors were encountered:
This example uses flask but the issue is with werkzeug, per discussion here
echoheaders.py:
Test:
The client did not provide a Content-Length header, but flask creates one that is set to an illegal empty string.
This is problematic for us, because my team decided to use flask as a kind of smart proxy service, so it forwards all the client headers along to the destination, which then rightly complains (per RFC 2616) that it cannot parse the value from the Content-Length header. So we had to write our own code to overwrite flask's version with a correct Content-Length. It would be nicer we did not artificially create this header, or at the very least, set it to a valid value (zero in this case).
The text was updated successfully, but these errors were encountered: