Don't double ratelimit error responses

This commit is contained in:
Keith Mitchell
2014-03-04 13:42:49 -08:00
parent 3cc9896009
commit 79765e2cd3

View File

@@ -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():