Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc215d1

Browse files
committed
I believe that this was a wrong decision. Patching
1 parent 17350fb commit bc215d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/request/redirecthandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def _get_header_redirect(self, headers):
3838

3939
if headers:
4040
if "location" in headers:
41-
retVal = headers.getheaders("location")[0].split("?")[0]
41+
retVal = headers.getheaders("location")[0]
4242
elif "uri" in headers:
43-
retVal = headers.getheaders("uri")[0].split("?")[0]
43+
retVal = headers.getheaders("uri")[0]
4444

4545
return retVal
4646

0 commit comments

Comments
 (0)