Skip to content

Commit

Permalink
split key -> bucket, key
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Dec 17, 2024
1 parent 40b04bc commit 361c1dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/btrixcloud/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,10 @@ async def get_s3_client(
bucket, key = parts.path[1:].split("/", 1)

# use presign_endpoint for actual connection here
# split key into bucket, key, as actual bucket in domain
if use_presign_url and storage.presign_endpoint_url:
parts = urlsplit(storage.presign_endpoint_url)
bucket, key = key.split("/", 1)

endpoint_url = parts.scheme + "://" + parts.netloc

Expand Down

0 comments on commit 361c1dc

Please sign in to comment.