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:
parent
f628b40e02
commit
a0aaa7558d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user