* Only treat :// as a scheme separator before the path
parse_url looked for :// anywhere, so a redirect to a path whose query
held a URL, such as /login?next=https://example.com/, was split at the
query and rejected because the scheme was not letters only.
* Check the path-with-query case in ParseUrlTest
The redirect test resolves its relative case to the same input shape, and
the case with a leading slash did not fit the test's name.
---------
Co-authored-by: yhirose <yuji.hirose.bug@gmail.com>
parse_disposition_params stored parameter names as they arrived, while FormDataParser looks up "name", "filename" and "filename*" in lower case. A part with NAME= was rejected with 400, and one with FILENAME*= was silently treated as a plain field. Parameter names are case-insensitive (RFC 2045 section 5.1), so the names are now lowercased when stored, as extract_media_type already does for Content-Type. Values keep their case.
RFC 9110 14.2 says an origin server MUST ignore a Range header field
with a range unit it does not understand. parse_range_header() accepts
only bytes=, so a request such as "Range: items=1-2" got a 416 instead
of the full response. The unit is now checked first, and only a bytes
range is parsed and answered with a 416 when it is invalid.