Commit Graph
3 Commits
Author SHA1 Message Date
Leng Niuandyhirose 852a66bcec Accept a language tag in a multipart filename* parameter (#2704)
* Accept a language tag in a multipart filename* parameter

RFC 8187 writes an ext-value as charset'[language]'value-chars. The parser
only took the "UTF-8''" form, so filename*=UTF-8'en'%41.txt made the whole
multipart body invalid and the request got 400. Skip the language tag and
decode the value as before.

* Shorten the comments and close the connection in the new test

Without Connection: close the server kept the connection open, so the
test waited for the 1-second read timeout of send_request().

---------

Co-authored-by: yhirose <yuji.hirose.bug@gmail.com>
2026-12-02 00:21:30 -05:00
Leng Niu a95f17cffa Skip unsatisfiable ranges instead of rejecting the whole Range set (#2703)
RFC 9110 14.1.1: a byte-range-set is satisfiable when any of its ranges is,
and 15.5.17 keeps 416 for when none of them are. range_error() answered 416
as soon as one range started past the end of the body. Leave such ranges
out and serve the rest.
2026-11-30 15:41:19 -05:00
Leng Niu 58cd21449c Match Digest challenge parameter names case-insensitively (#2702) 2026-11-28 19:07:39 -05:00