mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Don't double ratelimit error responses
This commit is contained in:
@@ -782,6 +782,9 @@ class MinimalController(BaseController):
|
||||
Headers will be sent even on aborted requests.
|
||||
|
||||
"""
|
||||
if c.error_page:
|
||||
# ErrorController is re-running pre, don't double ratelimit
|
||||
return
|
||||
if c.cdn_cacheable:
|
||||
type_ = "cdn"
|
||||
elif not is_api():
|
||||
|
||||
Reference in New Issue
Block a user