Fix crash when there are no response headers. (#366)
Found by manual testing with demo_server.
This commit is contained in:
Родитель
dce7b31ef1
Коммит
f592553aab
|
@ -91,6 +91,9 @@ class HttpResponse(object):
|
|||
|
||||
"""
|
||||
headers_dict = {}
|
||||
if self.headers is None:
|
||||
return headers_dict
|
||||
|
||||
for header in self.headers:
|
||||
payload_start_idx = header.index(":")
|
||||
try:
|
||||
|
|
Загрузка…
Ссылка в новой задаче