Commit 213bcdc0 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

patch: force the removal of hop-by-hop headers before finalizing the response

parent 6f72b9fc
......@@ -31,6 +31,9 @@ def finalize(self):
if self.status == 304:
headers.pop('content-length', None)
# Force the removal of "hop-by-hop" headers
headers.pop('Connection', None)
# set 204 (no content) status if 200 and response is empty
# and not streaming
if ('content-type' not in headers and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment