]> granicus.if.org Git - python/commit
SF bug report #405939: wrong Host header with proxy
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 8 Mar 2002 19:35:51 +0000 (19:35 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 8 Mar 2002 19:35:51 +0000 (19:35 +0000)
commit8acf1e0e01a841183e61e63bf956494a0517ceed
tree61c1d6a408189e78d4ec62ffa0ddc5a0930ba465
parent7dd5f3cf698a7ffb7e532719639c85f81a65dbe8
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