fix(rest): one honest rate-limit contract (#309); the pagination Link header uses the public base (#276 follow-up)
#309: the 300/min app-wide default existed only in comments (slowapi applies default_limits through SlowAPIMiddleware, never installed) — removed; routes are limited by their own decorators and the edge handles site-wide abuse. 429 is {"detail": "rate limit exceeded: …"} like every other error, and Retry-After is the time left in the caller's bucket (limiter.get_window_stats), not a constant 60. No X-RateLimit-* headers (slowapi would need a response parameter on every route). #276: build_cursor_link_header builds on public_url_for, never request.url; pagination.py leaves the PUB_30 allow-list. Docs: rate-limit and pagination sections state the real behaviour; #309 and #276 leave the known issues.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Semantic Changes
38 symbols
0 comments
muse hub commit comment sha256:f01bf034eb409e79373775083966fb6d1ecaefb4ac3b2e7e6d8beaeb555259df --body "your comment"
No comments yet. Be the first to start the discussion.