Commit 3bfd5ad2 authored by 's avatar

Merged fix for memory spiking on large uploads due to an extraneous

copy of the upload data being kept by cgi fieldstorages :(
parent 4140f43f
......@@ -1019,7 +1019,7 @@ class FieldStorage:
if not line:
self.done = -1
break
self.lines.append(line)
# self.lines.append(line)
self.file.write(line)
def read_lines_to_outerboundary(self):
......@@ -1032,7 +1032,7 @@ class FieldStorage:
if not line:
self.done = -1
break
self.lines.append(line)
# self.lines.append(line)
if line[:2] == "--":
strippedline = string.strip(line)
if strippedline == next:
......@@ -1062,7 +1062,7 @@ class FieldStorage:
if not line:
self.done = -1
break
self.lines.append(line)
# self.lines.append(line)
if line[:2] == "--":
strippedline = string.strip(line)
if strippedline == next:
......
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