From 28061859897bce4a1900e737c0f1d3cede789957 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 31 Aug 2012 10:43:06 +0200 Subject: [PATCH] Minor refactoring --- lib/core/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/target.py b/lib/core/target.py index a7a0d4e04..e7cee357d 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -159,7 +159,7 @@ def __setRequestParams(): # Url encoding of the header values should be avoided # Reference: http://stackoverflow.com/questions/5085904/is-ok-to-urlencode-the-value-in-headerlocation-value - httpHeader = "-".join(_.capitalize() for _ in (httpHeader or "").split("-")) + httpHeader = httpHeader.title() if httpHeader == HTTPHEADER.USER_AGENT: conf.parameters[PLACE.USER_AGENT] = urldecode(headerValue)