Repository navigation
v9.2.1
[v9.2.1] - 2026-11-09
Bug fixes for redirect classification, jailed file serving, byte ranges,
and content negotiation.
Fixed
resp.redirect(..., allow_external=False)now classifies the URL a client
will actually follow. Tab, CR, LF, and NUL are removed and backslashes are
treated as slashes before the external check, and that normalized value is
whatLocationsends. A target such as/\0/evil.exampleor
/\0\evil.exampleis rejected with400instead of leaving as a
protocol-relative redirect after header scrubbing.resp.file(),resp.stream_file(), andresp.download()withroot=
return404for an embedded NUL, a missing path, a symlink loop, or
anything that is not a regular file. Those cases previously raised and
surfaced as500.- Byte ranges: the unit is case-insensitive and whitespace around
=is
ignored (Bytes = 0-9), and abytesrange on an empty file is416
rather than a full200. Malformed ranges still serve the whole resource. Acceptqvalues that are non-numeric, non-finite, or outside0..1
are ignored (RFC 9110).application/yaml;q=2no longer outranks
application/json;q=1.
Changed
- Installation documentation now recommends
responder[orjson]on
standard GIL-enabled CPython, including combined feature extras and
deployment examples. Bareresponderremains the compatibility install
for free-threaded interpreters and transparently uses the standard-library
JSON encoder when orjson is unavailable.