Skip to content

v8.2.2

Choose a tag to compare

@kennethreitz kennethreitz released this 03 Jul 17:59

A bugfix release.

Fixed

  • RateLimiter.limit now propagates the handler's return value. Return-value-style handlers — return {...}, return text, or return data, status[, headers] — now compose with the @limiter.limit decorator. Previously the wrapper discarded the return value in both the sync and async branches, so any rate-limited handler that returned data instead of mutating resp produced an empty 200 response. Mutation-style handlers (resp.media = ...) were unaffected, which is why it went unnoticed. The over-limit path is unchanged: a request past the limit still gets a 429 with Retry-After, and the handler is not invoked.

PyPI: https://pypi.org/project/responder/8.2.2/
Full changelog: https://github.com/kennethreitz/responder/blob/main/CHANGELOG.md