Skip to content

Commit

Permalink
recoder fix: ensure Transfer-Encoding header is not passed through by…
Browse files Browse the repository at this point in the history
… RecorderApp, (#437)

as may result in duplicate Transfer-Encoding in py2.7, fixes #432
  • Loading branch information
ikreymer committed Jan 30, 2019
1 parent 3b64b6d commit 529a587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pywb/recorder/recorderapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ def handle_call(self, environ, start_response):

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

Expand Down

0 comments on commit 529a587

Please sign in to comment.