]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport jhylton's checkin of
authorMichael W. Hudson <mwh@python.net>
Mon, 11 Mar 2002 10:06:36 +0000 (10:06 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 11 Mar 2002 10:06:36 +0000 (10:06 +0000)
commit7ac030322ffa51990f5804531ed7ae6a6b6e38c4
treeab1a4d785107d2d7f31dd72b83d4519b69d539da
parentade05ed74ddc5ff5bec7cb529e97bccb51fde0d7
backport jhylton's checkin of
    revision 1.45 of httplib.py

SF bug report #405939: wrong Host header with proxy

In August, Greg said this looked good, so I'm going ahead with it.

The fix is different from the one in the bug report.  Instead of using
a regular expression to extract the host from the url, I use
urlparse.urlsplit.

Martin commented that the patch doesn't address URLs that have basic
authentication username and password in the header.  I don't see any
code anywhere in httplib that supports this feature, so I'm not going
to address it for this fix.

Bug fix candidate.
Lib/httplib.py