Merge pull request #1458 from mrpaulblack/fix-return-body-on-limiter-block

fix: return body on limiter block so there is not just a blank page
This commit is contained in:
Markus Heiser 2022-07-06 00:01:35 +02:00 committed by GitHub
commit ef5d4a7094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def is_accepted_request() -> bool:
def pre_request():
if not is_accepted_request():
return '', 429
return 'Too Many Requests', 429
return None