summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-23 14:30:23 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-23 14:30:23 (GMT)
commitd804bab721208a8691b554443c8cbf1a8ebb6c2d (patch)
tree4abbd8df810f38439963dbc5bc61438ca44fcaf5 /Lib
parentfde7a75b78ed29bc0b23c4df35587ade99a7ddf2 (diff)
downloadcpython-d804bab721208a8691b554443c8cbf1a8ebb6c2d.zip
cpython-d804bab721208a8691b554443c8cbf1a8ebb6c2d.tar.gz
cpython-d804bab721208a8691b554443c8cbf1a8ebb6c2d.tar.bz2
Make self.rfile unbuffered (self.wfile already is). This should fix
CGIHTTPServer.py when used with the POST command.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/SocketServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py
index 9a646ab..6c371e2 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):