[ python-Bugs-1046855 ] httplib index out of range

SourceForge.net noreply at sourceforge.net
Thu Oct 14 17:24:13 CEST 2004


Bugs item #1046855, was opened at 2004-10-14 03:21
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1046855&group_id=5470

Category: Python Library
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Grzegorz Makarewicz (makaron)
Assigned to: Brett Cannon (bcannon)
Summary: httplib index out of range

Initial Comment:
import httplib
conn = httplib.HTTP()

httplib.py:523, in _set_hostport
    if host[0] == '[' and host[-1] == ']':

just because host is an empty string


----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-10-14 10:24

Message:
Logged In: YES 
user_id=80475

Fixed.  
See Lib/httplib.py 1.93.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2004-10-14 08:18

Message:
Logged In: YES 
user_id=6656

Ugh.  Brett, cvs annotate fingers you :)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1046855&group_id=5470


More information about the Python-bugs-list mailing list