mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.
This commit is contained in:
parent
4e327c9d1c
commit
331c3fd874
3 changed files with 49 additions and 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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue