]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport:
authorGuido van Rossum <guido@python.org>
Thu, 1 Aug 2002 21:14:33 +0000 (21:14 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 1 Aug 2002 21:14:33 +0000 (21:14 +0000)
Fix for SF bug 570678 (can't flush read-only file on Mac OS X).

Lib/CGIHTTPServer.py

index 7a7e0754f4473b6dba375d3ec0bc21389fc01e5e..76570d25925e9ef8163e07dd69b11ded0480ed54 100644 (file)
@@ -193,7 +193,6 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
             if '=' not in decoded_query:
                 args.append(decoded_query)
             nobody = nobody_uid()
-            self.rfile.flush() # Always flush before forking
             self.wfile.flush() # Always flush before forking
             pid = os.fork()
             if pid != 0: