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 kirax
Recipients kirax
Date 2010-12-10.12:16:45
SpamBayes Score 4.7101887e-05
Marked as misclassified No
Message-id <1291983407.25.0.106124609797.issue10671@psf.upfronthosting.co.za>
In-reply-to
Content
When you open url which redirects to another host (either with 301 or 302), HTTPRedirectHandler keeps "Host" header from the previous request, which leads to a error. Instead a host should be taken from a new location url.

Attached patch is tested with Python 2.6.5.
History
Date User Action Args
2010-12-10 12:16:47kiraxsetrecipients: + kirax
2010-12-10 12:16:47kiraxsetmessageid: <1291983407.25.0.106124609797.issue10671@psf.upfronthosting.co.za>
2010-12-10 12:16:45kiraxlinkissue10671 messages
2010-12-10 12:16:45kiraxcreate