Skip to content

Commit

Permalink
Merge pull request #972 from dandi/strip-server-slash
Browse files Browse the repository at this point in the history
Strip trailing slash from URLs in `/server-info`
  • Loading branch information
yarikoptic committed Apr 21, 2022
2 parents 17df15d + 20ecaac commit 431a533
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dandi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,9 @@ def get_instance(dandi_instance_id: str) -> DandiInstance:
) # note: somehow was ending up with {"girder": None}
for name, rec in server_info.get("services", {}).items()
}
for k, v in list(services.items()):
if v is not None:
services[k] = v.rstrip("/")
if services.get("api"):
return DandiInstance(
gui=services.get("webui"),
Expand Down

0 comments on commit 431a533

Please sign in to comment.