summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/searx/utils.py b/searx/utils.py
index 7b7cd8f5d..54b32484e 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -61,11 +61,9 @@ class _NotSetClass: # pylint: disable=too-few-public-methods
_NOTSET = _NotSetClass()
-def searx_useragent() -> str:
- """Return the searx User Agent"""
- return 'searx/{searx_version} {suffix}'.format(
- searx_version=VERSION_TAG, suffix=settings['outgoing']['useragent_suffix']
- ).strip()
+def searxng_useragent() -> str:
+ """Return the SearXNG User Agent"""
+ return f"SearXNG/{VERSION_TAG} {settings['outgoing']['useragent_suffix']}".strip()
def gen_useragent(os_string: Optional[str] = None) -> str: