[ python-Bugs-1469498 ] Exception when handling http response
SourceForge.net
noreply at sourceforge.net
Wed Apr 12 22:49:37 CEST 2006
Bugs item #1469498, was opened at 2006-04-12 20:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1469498&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Richard Kasperski (rkasperski)
Assigned to: Nobody/Anonymous (nobody)
Summary: Exception when handling http response
Initial Comment:
When handling the return from a web server that dooes
not return the content length(one I wrote) httplib
takes an exception at line 478.
The line of code in question is
if self.length is not None:
and should probably read
if self.length is not None and self.length != _UNKNOWN:
The problem is that self.length is no longer
initialized to None
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1469498&group_id=5470
More information about the Python-bugs-list
mailing list