From 38385e48cf65895db8143fa8e52069d15513925e Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Tue, 5 Jul 2022 22:57:26 +0200 Subject: [PATCH] fix: return body on limiter block so there is not just a blank page --- searx/plugins/limiter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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