From bc215d1b19a33a2b1400fb8bfb3d20e7c3b00b96 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 9 Nov 2015 14:11:08 +0100 Subject: [PATCH] I believe that this was a wrong decision. Patching --- lib/request/redirecthandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/redirecthandler.py b/lib/request/redirecthandler.py index 3359f59e7..f75cffed5 100644 --- a/lib/request/redirecthandler.py +++ b/lib/request/redirecthandler.py @@ -38,9 +38,9 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler): if headers: if "location" in headers: - retVal = headers.getheaders("location")[0].split("?")[0] + retVal = headers.getheaders("location")[0] elif "uri" in headers: - retVal = headers.getheaders("uri")[0].split("?")[0] + retVal = headers.getheaders("uri")[0] return retVal