Make self.rfile unbuffered (self.wfile already is). This should fix

CGIHTTPServer.py when used with the POST command.
This commit is contained in:
Guido van Rossum 1996-10-23 14:30:23 +00:00
parent fde7a75b78
commit d804bab721

View 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):