From d804bab721208a8691b554443c8cbf1a8ebb6c2d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 23 Oct 1996 14:30:23 +0000 Subject: [PATCH] Make self.rfile unbuffered (self.wfile already is). This should fix CGIHTTPServer.py when used with the POST command. --- Lib/SocketServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index 9a646ab6eb7..6c371e2d998 100644 --- a/Lib/SocketServer.py +++ b/Lib/SocketServer.py @@ -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):