summaryrefslogtreecommitdiff
path: root/searx/engines/yacy.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/yacy.py')
-rw-r--r--searx/engines/yacy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py
index 8f0718038..1328f1788 100644
--- a/searx/engines/yacy.py
+++ b/searx/engines/yacy.py
@@ -118,6 +118,8 @@ def _base_url() -> str:
url = engines['yacy'].base_url # type: ignore
if isinstance(url, list):
url = random.choice(url)
+ if url.endswith("/"):
+ url = url[:-1]
return url