1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

Catch uWSGI TypeError for invalid headers (#603)

This commit is contained in:
Kai Jauslin 2021-01-26 22:40:14 +01:00 committed by GitHub
parent f628b40e02
commit a0aaa7558d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ class WbResponse(object):
try:
start_response(self.status_headers.statusline,
self.status_headers.headers)
except UnicodeError:
except (UnicodeError, TypeError):
self.try_fix_errors()
start_response(self.status_headers.statusline,
self.status_headers.headers)