Closed jun66j5 closed 2 months ago
I have a fix ready and will probably push a patch release next week. Thanks for your very helpful reports so far!
Plan is to fully honor Content-Length, if defined. MultipartParser
and parse_form_data()
should over-read, and warn if they detect an obvious error (e.g. less data available than expected).
Verified the issue being fixed with multipart 1.1.0. Thanks.
WSGI specification says:
Input and Error Streams | PEP 3333 – Python Web Server Gateway Interface v1.0.1 | peps.python.org
However, the multipart module attempts to read more data that is specified by Content-Length while parsing form-data since multipart 1.0.0 (for urlencoded-data before this version also).
(Originally reported at https://trac.edgewall.org/ticket/13789)