1
0
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:
Ilya Kreymer 2019-01-30 18:14:09 -05:00 committed by GitHub
parent 3b64b6d2c9
commit 529a587cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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