[Twisted-Python] HTTP client should be more tolerant?
fingon at iki.fi
Sun Feb 6 03:02:27 EST 2005
Tommi Virtanen <tv at twistedmatrix.com> writes:
> Markus Stenberg wrote:
>> Changes required? web/http.py:
>> @@ -314,6 +314,7 @@
>> length = None
>> firstLine = 1
>> __buffer = ''
>> + delimiter = '\n'
>> def sendCommand(self, command, path):
>> self.transport.write('%s %s HTTP/1.0\r\n' % (command, path))
> That affects self.sendLine() too, causing your modified version to
> potentially send LF-only lines. Not what you wanted.
At least in 1.3 the HTTP stuff doesn't use sendLine for some ineffable
reason. Probably not in the old stuff in svn either, but don't have checked
out copy at home ;) wonder why sendCommand/Header, endHeaders are
implemented using transport.write..
More information about the Twisted-Python