[ python-Bugs-1019956 ] httplib.HTTPConnection sends extra blank
line
SourceForge.net
noreply at sourceforge.net
Tue Aug 31 22:01:01 CEST 2004
Bugs item #1019956, was opened at 2004-08-31 15:00
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=1019956&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Antonio Rodriguez (antrod)
Assigned to: Nobody/Anonymous (nobody)
Summary: httplib.HTTPConnection sends extra blank line
Initial Comment:
It seems that line 594 of httplib.py:
self._buffer.extend(("", ""))
Causes the insertion of an extra \r\n so that at the end of the
headers an extra blank line is submitted. This can create problems
when PUTting files because the extra line gets treated as part of
the payload and can thus cause the truncation of the end of the file
on servers that are listening to the Content-Length header.
I think that:
self._buffer.extend(("", ))
fixes the issue but I am not quite sure whether this is there for
some other reason.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1019956&group_id=5470
More information about the Python-bugs-list
mailing list