diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-07-11 08:42:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-11 08:42:39 +0200 |
| commit | a48ec8a4d513b3d80ae4881809e6617db9f5ecaa (patch) | |
| tree | cfdbd1079138cf2d01d84d0b750b26538271d5bb /searx/engines/quark.py | |
| parent | 4b9644eb2723b58bdb68f8d97f1220a7645d079e (diff) | |
[chore] engines: remove redundant usages of utils#gen_useragent (#4993)
These engines override the user agent manually using `gen_useragent`, although that's already done in the online preprocessor that runs before the actual `request(query, params)` method is called. Hence, this call is duplicated.
Related:
- https://github.com/searxng/searxng/pull/4990#discussion_r2195142838
Diffstat (limited to 'searx/engines/quark.py')
| -rw-r--r-- | searx/engines/quark.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/quark.py b/searx/engines/quark.py index 1c2e84492..38d431da9 100644 --- a/searx/engines/quark.py +++ b/searx/engines/quark.py @@ -6,7 +6,7 @@ from datetime import datetime import re import json -from searx.utils import html_to_text, gen_useragent +from searx.utils import html_to_text from searx.exceptions import SearxEngineAPIException, SearxEngineCaptchaException # Metadata @@ -77,9 +77,6 @@ def request(query, params): query_params["tl_request"] = time_range_dict.get(params['time_range']) params["url"] = f"{query_url}?{urlencode(query_params)}" - params["headers"] = { - "User-Agent": gen_useragent(), - } return params |