From 0d974bb36fc53f267ba1ceb8f357bea7774f925d Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Tue, 12 Mar 2024 13:34:10 +0100 Subject: [PATCH] fixup! better combination of urls --- webservice/components/request_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webservice/components/request_adapter.py b/webservice/components/request_adapter.py index 9399729c..4b348e2e 100644 --- a/webservice/components/request_adapter.py +++ b/webservice/components/request_adapter.py @@ -68,7 +68,7 @@ def _get_url(self, url=None, url_params=None, **kwargs): url = self.collection.url elif not url.startswith(self.collection.url): if not url.startswith("http"): - url = f"{self.collection.url.rstrip('/')/{url.lstrip('/')" + url = f"{self.collection.url.rstrip('/')}/{url.lstrip('/')}" else: # TODO: if url is given, we should validate the domain # to avoid abusing a webservice backend for different calls.