From ea12ccec77efe67d68d6420abcc01d9e457cbb74 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 9 Oct 2012 11:33:19 +0200 Subject: [PATCH] Minor refactoring --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 88243f76b..6c79b2f09 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -278,7 +278,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls): params = True # Headers - elif ": " in line: + elif re.search(r"\A\S+: ", line): key, value = line.split(": ", 1) # Cookie and Host headers