summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2013-07-07 10:46:28 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2013-07-07 10:46:28 (GMT)
commit74a146d3acaa07c7176f3fa41607cc8224acdbcd (patch)
treeae3a13974084734670006934fa967036275e2a1c /Lib/cgi.py
parent4603487dc941f2e6de04664058689f21a2ff349f (diff)
parent331c3fd874333b71bd315c0541349fcaebabfdcb (diff)
downloadcpython-74a146d3acaa07c7176f3fa41607cc8224acdbcd.zip
cpython-74a146d3acaa07c7176f3fa41607cc8224acdbcd.tar.gz
cpython-74a146d3acaa07c7176f3fa41607cc8224acdbcd.tar.bz2
Merge #18013: Fix cgi.FieldStorage to parse the W3C sample form.
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index e3cf33e..4de82ea 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -699,7 +699,7 @@ class FieldStorage:
self.encoding, self.errors)
self.bytes_read += part.bytes_read
self.list.append(part)
- if self.bytes_read >= self.length:
+ if part.done or self.bytes_read >= self.length > 0:
break
self.skip_lines()