diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2013-07-07 10:46:28 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2013-07-07 10:46:28 (GMT) |
commit | 74a146d3acaa07c7176f3fa41607cc8224acdbcd (patch) | |
tree | ae3a13974084734670006934fa967036275e2a1c /Lib/cgi.py | |
parent | 4603487dc941f2e6de04664058689f21a2ff349f (diff) | |
parent | 331c3fd874333b71bd315c0541349fcaebabfdcb (diff) | |
download | cpython-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-x | Lib/cgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |