From eb8e12b7c25ffe82b37f143d7aa673d6aca22705 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 23 May 2013 11:29:43 +0400 Subject: [PATCH] Minor adjustment (for headers like 'name:http://asdas') --- lib/core/option.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 5767747c1..b8db7dc4e 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1196,8 +1196,8 @@ def _setHTTPExtraHeaders(): conf.headers = conf.headers.split("\n") if "\n" in conf.headers else conf.headers.split("\\n") for headerValue in conf.headers: - if headerValue.count(':') == 1: - header, value = (_.lstrip() for _ in headerValue.split(":")) + if headerValue.count(':') > 1: + header, value = (_.lstrip() for _ in headerValue.split(":", 1)) if header and value: conf.httpHeaders.append((header, value))