Commit ca4171ed authored by 's avatar

Fixed bug: TemporaryFile('wb') is apparently different than 'w+b'...

parent 0e966cc0
......@@ -210,8 +210,6 @@ class PCGIPublisher:
try: os.chmod(self.socketFile, 0777)
except os.error: pass
def initPrincipia(self):
if self.resource.has_key('SOFTWARE_NAME'):
self.moduleName = self.resource['SOFTWARE_NAME']
......@@ -271,7 +269,7 @@ class PCGIPublisher:
if size > 1048576:
### write large upload data to a file ###
from tempfile import TemporaryFile
stdin = TemporaryFile('wb')
stdin = TemporaryFile('w+b')
bufsize = self.bufsize
while size > 0:
if size < bufsize:
......
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