Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] strip spaces from searx user agent

Alexandre Flament92c8a8829f2e
diff --git a/searx/utils.py b/searx/utils.py
index bf9957df4..285546043 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -45,7 +45,7 @@ def searx_useragent():
"""Return the searx User Agent"""
return 'searx/{searx_version} {suffix}'.format(
searx_version=VERSION_STRING,
- suffix=settings['outgoing']['useragent_suffix'].strip())
+ suffix=settings['outgoing']['useragent_suffix']).strip()
def gen_useragent(os=None):