summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
authormrpaulblack <paul@paulgo.io>2022-07-05 22:57:26 +0200
committermrpaulblack <paul@paulgo.io>2022-07-05 22:57:26 +0200
commit38385e48cf65895db8143fa8e52069d15513925e (patch)
tree712d64e213c7dd46ee453c90ec923895d714b53e /searx/plugins
parent7fec286f31f983f08a35b3e901d253be5f44689e (diff)
downloadsearxng-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.py2
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