Browse Source

fix: return body on limiter block so there is not just a blank page

mrpaulblack 2 years ago
parent
commit
38385e48cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/plugins/limiter.py

+ 1 - 1
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