minor fix (crashing if no : in value)

This commit is contained in:
Miroslav Stampar 2012-01-07 14:54:56 +00:00
parent f85c5b3f4d
commit 3f4afdf251

View File

@ -1076,7 +1076,8 @@ def __setHTTPExtraHeaders():
conf.headers = conf.headers.split("\n")
for headerValue in conf.headers:
header, value = headerValue.split(": ")
if ":" in headerValue:
header, value = headerValue.split(":")
if header and value:
conf.httpHeaders.append((header, value))