unstale

pypi / responses

responses

What changed in responses 0.26, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.

2 breaking3 new APIs and options4 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

responses 0.269 changes

Breaking changes 2

  • Default headers are stripped from recorded files regardless of header-name case, preventing redundant headers from being retained.

    0.26.2release notes

  • When both content_type and headers['content-type'] are in a response mock file, content_type is now used.

    0.26.1release notes

New APIs and options 3

  • Adds keep_headers to preserve named headers otherwise stripped as verbose defaults, allowing signed responses to be recorded and later verified. Matching is case-insensitive.

    0.26.3release notes

  • Adds keep_headers to preserve named headers otherwise stripped as verbose defaults, allowing signed responses to be recorded and later verified. Matching is case-insensitive.

    0.26.3release notes

  • Added strict_match, enabling partial request parameter matching.

    0.26.1release notes

Fixes and other changes 4

  • Fixes the exposed element type so static type checkers infer Call values when iterating, indexing, or filtering recorded calls.

    0.26.3release notes

  • Opaque fragments without = are no longer treated as always equal, preventing a required fragment from matching a different fragment or none at all.

    0.26.3release notes

  • Preserves blank-valued query parameters, preventing requests with an extra or missing blank parameter from matching incorrectly; this also fixes query matching automatically applied to a registered URL's own query string.

    0.26.3release notes

  • Fixed mutation of the caller's params dict when numeric values are provided.

    0.26.2release notes