[fix] cleanup: rename searx leftovers to SearXNG (#5049)

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2025-07-26 06:22:46 +02:00 committed by GitHub
parent 02cbdf468b
commit 649a8dd577
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 33 additions and 35 deletions

View file

@ -6,7 +6,7 @@ ends.
"""
from json import dumps
from searx.utils import searx_useragent
from searx.utils import searxng_useragent
from searx.enginelib.traits import EngineTraits
about = {
@ -31,7 +31,7 @@ def request(query, params):
params['headers'] = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'User-Agent': searx_useragent(),
'User-Agent': searxng_useragent(),
}
region = traits.get_region(params["searxng_locale"], default=traits.all_locale)
params['data'] = dumps(