mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
recoder fix: ensure Transfer-Encoding header is not passed through by RecorderApp, (#437)
as may result in duplicate Transfer-Encoding in py2.7, fixes #432
This commit is contained in:
parent
3b64b6d2c9
commit
529a587cdc
@ -252,6 +252,10 @@ class RecorderApp(object):
|
||||
|
||||
resp_iter = StreamIter(resp_stream)
|
||||
|
||||
# ensure TE header from upstream is not included,
|
||||
# added automatically by wsgi app
|
||||
res.headers.pop('Transfer-Encoding', '')
|
||||
|
||||
start_response('200 OK', list(res.headers.items()))
|
||||
return resp_iter
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user