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 confluence
Recipients BitTorment, ambarish, confluence
Date 2008-05-10.15:50:00
SpamBayes Score 0.00096915395
Marked as misclassified No
Message-id <1210434602.09.0.775841332125.issue2776@psf.upfronthosting.co.za>
In-reply-to
Content
Ordinarily, request.get_selector() returns the portion of the url after
the host, and sel_host is None.  However, if a proxy is set on the
request, the request's host is set to the proxy host, get_selector()
returns the original full url, and sel_host is the host from the
original url (and different to the host set on the request).

This bug is only triggered if the double slash comes directly after the
host and there is no proxy set on the request.  do_request_ does not
check what get_selector() is returning, so the output is passed through
splithost even when this is not necessary, and in this particular case
it causes undesirable behaviour.

My patch causes do_request_ only to attempt to extract the host from
get_selector() if the proxy has been set.
History
Date User Action Args
2008-05-10 15:50:02confluencesetspambayes_score: 0.000969154 -> 0.00096915395
recipients: + confluence, BitTorment, ambarish
2008-05-10 15:50:02confluencesetspambayes_score: 0.000969154 -> 0.000969154
messageid: <1210434602.09.0.775841332125.issue2776@psf.upfronthosting.co.za>
2008-05-10 15:50:01confluencelinkissue2776 messages
2008-05-10 15:50:01confluencecreate