mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
fix: return body on limiter block so there is not just a blank page
This commit is contained in:
parent
7fec286f31
commit
38385e48cf
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user