summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-08-26 11:54:12 +0200
committerGitHub <noreply@github.com>2022-08-26 11:54:12 +0200
commit5284de9137c43c2a343958c5c3fccf97b72d65a3 (patch)
tree480fe59aa9e5e3c2f51abea094776d17096e2e23 /searx
parent2edf7d1f69fd9f696e0ad2412164b660cd6ea32a (diff)
parent221740f76e4f3c056828adf0af5dfb0efbcc5c74 (diff)
downloadsearxng-5284de9137c43c2a343958c5c3fccf97b72d65a3.tar.gz
searxng-5284de9137c43c2a343958c5c3fccf97b72d65a3.zip
Merge pull request #1702 from tiekoetter/limiter-accept-encoding-handling
[mod] limiter plugin: Accept-Encoding handling
Diffstat (limited to 'searx')
-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 c9aa36265..c6f5d6a0f 100644
--- a/searx/plugins/limiter.py
+++ b/searx/plugins/limiter.py
@@ -67,7 +67,7 @@ def is_accepted_request() -> bool:
return False
accept_encoding_list = [l.strip() for l in request.headers.get('Accept-Encoding', '').split(',')]
- if 'gzip' not in accept_encoding_list or 'deflate' not in accept_encoding_list:
+ if 'gzip' not in accept_encoding_list and 'deflate' not in accept_encoding_list:
logger.debug("suspicious Accept-Encoding") # pylint: disable=undefined-variable
return False