Commit d804bab7 authored by Guido van Rossum's avatar Guido van Rossum

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

CGIHTTPServer.py when used with the POST command.
parent fde7a75b
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment