Skip to content

Commit 1fb9040

Browse files
author
mcquin
committed
Replace '+' with ' '
1 parent 72cd491 commit 1fb9040

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bioformats/formatreader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,10 @@ def download(self, url):
683683

684684
if scheme == 's3':
685685
client = boto3.client('s3')
686-
bucket_name, filename = re.compile('s3://([\w\d\-\.]+)/(.*)').search(url).groups()
686+
bucket_name, key = re.compile('s3://([\w\d\-\.]+)/(.*)').search(url).groups()
687687
url = client.generate_presigned_url(
688688
'get_object',
689-
Params={'Bucket': bucket_name, 'Key': filename},
689+
Params={'Bucket': bucket_name, 'Key': key.replace("+", " ")},
690690
ExpiresIn=86400
691691
)
692692

0 commit comments

Comments
 (0)