I believe that this was a wrong decision. Patching

This commit is contained in:
Miroslav Stampar 2015-11-09 14:11:08 +01:00
parent 17350fb4ec
commit bc215d1b19

View File

@ -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