]> granicus.if.org Git - python/commitdiff
Make self.rfile unbuffered (self.wfile already is). This should fix
authorGuido van Rossum <guido@python.org>
Wed, 23 Oct 1996 14:30:23 +0000 (14:30 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 23 Oct 1996 14:30:23 +0000 (14:30 +0000)
CGIHTTPServer.py when used with the POST command.

Lib/SocketServer.py

index 9a646ab6eb709d23867a17f77fb3c65b757ec719..6c371e2d99899451de8207be7aca2ac47334e19c 100644 (file)
@@ -392,7 +392,7 @@ class StreamRequestHandler(BaseRequestHandler):
 
     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):