This commit is contained in:
Miroslav Stampar 2015-08-30 23:15:50 +02:00
parent 89292ce1f9
commit 50d39d0252

View File

@ -312,9 +312,9 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
params = True
# Headers
elif re.search(r"\A\S+: ", line):
key, value = line.split(": ", 1)
value = value.replace("\r", "").replace("\n", "")
elif re.search(r"\A\S+:", line):
key, value = line.split(":", 1)
value = value.strip().replace("\r", "").replace("\n", "")
# Cookie and Host headers
if key.upper() == HTTP_HEADER.COOKIE.upper():