Mercurial > cpython-lru_cache-weakref
diff Lib/cgi.py @ 84482:406ce103c170 3.3
Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.
| author | Florent Xicluna <florent.xicluna@gmail.com> |
|---|---|
| date | Sun, 07 Jul 2013 12:44:28 +0200 |
| parents | a48f65bac986 |
| children | 2ab2a2bfea49 |
line wrap: on
line diff
--- a/Lib/cgi.py Sun Jul 07 09:53:08 2013 +0200 +++ b/Lib/cgi.py Sun Jul 07 12:44:28 2013 +0200 @@ -699,7 +699,7 @@ 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()
