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
When responding with a unicode characters in a header key / value, it results in a UnicodeEncodeError (already known with #742, #1286...), but in addition, it doesn't close the connection, leading to use the body as a new request.
This comes from here > here > here. Because headers sending has already started when the error occurs, it will stop generating the response without reaching Connection: close and self.end_headers().
Environment:
Python version: 3.9
Werkzeug version: 3.0.1
The text was updated successfully, but these errors were encountered:
kevin-mizu
changed the title
Request not close with unicode headers
Request not closed with Unicode characters in headers
Jan 9, 2024
When responding with a unicode characters in a header key / value, it results in a UnicodeEncodeError (already known with #742, #1286...), but in addition, it doesn't close the connection, leading to use the body as a new request.
For example:
This will results in:
This comes from here > here > here. Because headers sending has already started when the error occurs, it will stop generating the response without reaching
Connection: close
andself.end_headers()
.Environment:
The text was updated successfully, but these errors were encountered: