Skip to content

Commit

Permalink
better combination of urls
Browse files Browse the repository at this point in the history
Co-authored-by: Simone Orsi <[email protected]>
  • Loading branch information
gurneyalex and simahawk authored Mar 11, 2024
1 parent 9bc0dc6 commit 023d78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webservice/components/request_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = self.collection.url + url
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.
Expand Down

0 comments on commit 023d78d

Please sign in to comment.