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.

classification
Title: httplib index out of range
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, makaron, mwh, rhettinger
Priority: high Keywords:

Created on 2004-10-14 08:21 by makaron, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg22688 - (view) Author: Grzegorz Makarewicz (makaron) Date: 2004-10-14 08:21
import httplib
conn = httplib.HTTP()

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

just because host is an empty string
msg22689 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-10-14 13:18
Logged In: YES 
user_id=6656

Ugh.  Brett, cvs annotate fingers you :)
msg22690 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-10-14 15:24
Logged In: YES 
user_id=80475

Fixed.  
See Lib/httplib.py 1.93.
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 41019
2004-10-14 08:21:47makaroncreate