We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a586a9 commit 1710ba4Copy full SHA for 1710ba4
pystac_client/client.py
@@ -515,10 +515,8 @@ def _get_collections_href(self, id: Optional[str] = None) -> str:
515
)
516
else:
517
collections_href = data_link.href
518
- elif self_href.endswith("/"):
519
- collections_href = f"{self_href}collections"
520
521
- collections_href = f"{self_href}/collections"
+ collections_href = f"{self_href.rstrip('/')}/collections"
522
523
if not pystac.utils.is_absolute_href(collections_href):
524
collections_href = self._make_absolute_href(collections_href)
0 commit comments