This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients ezio.melotti, facundobatista, gregory.p.smith, janik, karlcow, martin.panter, orsenthil
Date 2015-05-26.03:55:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432612501.82.0.622842125145.issue14132@psf.upfronthosting.co.za>
In-reply-to
Content
urllib2_redirect_fix.2.patch adds a test.

I was tempted to remove the whole block of code setting the path to “/”, but there is one minor disadvantage: if a redirect points to a so-called “malformed” URL without any path component, like “http://example.net” or “http://example.net?query”, geturl() would return this URL verbatim.
History
Date User Action Args
2015-05-26 03:55:01martin.pantersetrecipients: + martin.panter, facundobatista, gregory.p.smith, orsenthil, ezio.melotti, karlcow, janik
2015-05-26 03:55:01martin.pantersetmessageid: <1432612501.82.0.622842125145.issue14132@psf.upfronthosting.co.za>
2015-05-26 03:55:01martin.panterlinkissue14132 messages
2015-05-26 03:55:00martin.pantercreate