Feb. 6, 2005
2:02 a.m.
Tommi Virtanen <tv@twistedmatrix.com> writes:
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
Markus Stenberg wrote: 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.. -Markus