mirror of
https://github.com/kennethreitz/responder.git
synced 2026-07-21 18:39:29 +00:00
c5c82aebd5
Fix RateLimiter.limit dropping return-value handlers: the decorator's wrapper now returns the handler's value in both the sync and async branches, so return-value-style handlers (return dict/str/bytes or (data, status[, headers])) compose with @limiter.limit instead of producing an empty 200. The over-limit 429 path is unchanged. Adds regression tests covering all return shapes, the mutation style, a Query marker param, and the 429 skip path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>