summaryrefslogtreecommitdiff
path: root/searx/botdetection/http_accept_encoding.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/botdetection/http_accept_encoding.py')
-rw-r--r--searx/botdetection/http_accept_encoding.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/botdetection/http_accept_encoding.py b/searx/botdetection/http_accept_encoding.py
index 4f9e28858..0975cc85e 100644
--- a/searx/botdetection/http_accept_encoding.py
+++ b/searx/botdetection/http_accept_encoding.py
@@ -13,7 +13,6 @@ bot if the Accept-Encoding_ header ..
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding
"""
-# pylint: disable=unused-argument
from __future__ import annotations
from ipaddress import (
@@ -21,17 +20,18 @@ from ipaddress import (
IPv6Network,
)
-import flask
import werkzeug
+from searx.extended_types import SXNG_Request
+
from . import config
from ._helpers import too_many_requests
def filter_request(
network: IPv4Network | IPv6Network,
- request: flask.Request,
- cfg: config.Config,
+ request: SXNG_Request,
+ cfg: config.Config, # pylint: disable=unused-argument
) -> werkzeug.Response | None:
accept_list = [l.strip() for l in request.headers.get('Accept-Encoding', '').split(',')]