[Twisted-Python] HTTP client should be more tolerant?

Tommi Virtanen tv at twistedmatrix.com
Sat Feb 5 02:48:23 MST 2005


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.




More information about the Twisted-Python mailing list