Skip to content

Commit

Permalink
Trailing backslash is necessary for now
Browse files Browse the repository at this point in the history
  • Loading branch information
seboceanum committed Jan 3, 2025
1 parent c55e999 commit e76566c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oceanum/datamesh/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def acquire(cls,
try:
headers = connection._auth_headers.copy()
headers["Cache-Control"] = "no-store"
res = requests.get(f"{connection._gateway}/session",
res = requests.get(f"{connection._gateway}/session/",
headers=headers)
if res.status_code != 200:
raise DatameshConnectError("Failed to create session with error: " + res.text)
Expand All @@ -46,7 +46,7 @@ def from_proxy(cls):
"""

try:
res = requests.get(f"{os.environ['DATAMESH_ZARR_PROXY']}/session",
res = requests.get(f"{os.environ['DATAMESH_ZARR_PROXY']}/session/",
headers={"X-DATAMESH-TOKEN": os.environ['DATAMESH_TOKEN'],
"USER": os.environ['DATAMESH_USER'],
'Cache-Control': 'no-cache'})
Expand Down

0 comments on commit e76566c

Please sign in to comment.