From: Guido van Rossum Date: Wed, 23 Oct 1996 14:30:23 +0000 (+0000) Subject: Make self.rfile unbuffered (self.wfile already is). This should fix X-Git-Tag: v1.4~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d804bab721208a8691b554443c8cbf1a8ebb6c2d;p=python Make self.rfile unbuffered (self.wfile already is). This should fix CGIHTTPServer.py when used with the POST command. --- diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index 9a646ab6eb..6c371e2d99 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):