bpo-27777: cgi.FieldStorage can't parse simple body with Cont… by ar45 · Pull Request #11764 · python/cpython

@ar45

…ent-Length and no Content-Disposition

- If content length is present, read at most len bytes.
- When reading `read_lines_to_eof` use `read` instead of `readline`.
- Use `self.__write` even when content length is present and > 1000.

auvipy

@ar45

Renamed `test_fieldstorage_readline` to `test_fieldstorage_read`
and test `read` instead of `readline` since we use `read`.

ZackerySpytz

@ar45

Added mention of FieldStorage

@rr rr mannequin mentioned this pull request

Apr 11, 2022