diff Lib/SocketServer.py @ 4459:c91aacbf8ed4 legacy-trunk

Make self.rfile unbuffered (self.wfile already is). This should fix CGIHTTPServer.py when used with the POST command.
author Guido van Rossum <guido@python.org>
date Wed, 23 Oct 1996 14:30:23 +0000
parents 409a89c5f66d
children b56d527a433f
line wrap: on
line diff
--- a/Lib/SocketServer.py	Wed Oct 23 14:19:40 1996 +0000
+++ b/Lib/SocketServer.py	Wed Oct 23 14:30:23 1996 +0000
@@ -392,7 +392,7 @@
 
     def setup(self):
 	self.connection = self.request
-	self.rfile = self.connection.makefile('rb')
+	self.rfile = self.connection.makefile('rb', 0)
 	self.wfile = self.connection.makefile('wb', 0)
 
     def finish(self):