diff options
author | mrpaulblack <paul@paulgo.io> | 2022-07-05 22:57:26 +0200 |
---|---|---|
committer | mrpaulblack <paul@paulgo.io> | 2022-07-05 22:57:26 +0200 |
commit | 38385e48cf65895db8143fa8e52069d15513925e (patch) | |
tree | 712d64e213c7dd46ee453c90ec923895d714b53e /searx/plugins | |
parent | 7fec286f31f983f08a35b3e901d253be5f44689e (diff) | |
download | searxng-38385e48cf65895db8143fa8e52069d15513925e.tar.gz searxng-38385e48cf65895db8143fa8e52069d15513925e.zip |
fix: return body on limiter block so there is not just a blank page
Diffstat (limited to 'searx/plugins')
-rw-r--r-- | searx/plugins/limiter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/plugins/limiter.py b/searx/plugins/limiter.py index bdaeeea69..c9aa36265 100644 --- a/searx/plugins/limiter.py +++ b/searx/plugins/limiter.py @@ -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 |