[Python-checkins] CVS: python/dist/src/Lib httplib.py,1.44,1.45

Jeremy Hylton jeremy@zope.com
Fri, 08 Mar 2002 14:43:22 -0500


On Fri, 8 Mar 2002 14:39:41 -0500
 Andrew Kuchling <akuchlin@mems-exchange.org> wrote:
> On Fri, Mar 08, 2002 at 11:35:54AM -0800, Jeremy Hylton
> wrote:
> >SF bug report #405939: wrong Host header with proxy
> >!             if url.startswith('http:'):
> >!                 nil, netloc, nil, nil, nil =
> urlsplit(url)
> 
> Does it matter that this won't catch https:// URLs?

Probably.

I should probably change the initial test to startswith
'http' and then verify that the netloc return from
urlsplit() is not ''.

Sound good to you?

Jeremy