Skip to content

Commit 63e061f

Browse files
authored
Merge pull request #8 from asnimansari/main
Fixed Single and Multiple Signed URL creation
2 parents b999819 + ee48b00 commit 63e061f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "supabase-storage-rs"
33
authors = ["Eric Biggs"]
44
description = "Supabase storage implementation following the official client libraries."
55
readme = "README.md"
6-
version = "0.1.8"
6+
version = "0.1.9"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
keywords = ["supabase", "supabase-storage", "storage"]

src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ impl StorageClient {
741741
})?;
742742

743743
Ok(format!(
744-
"{}{}/{}",
744+
"{}{}{}",
745745
self.project_url, STORAGE_V1, signed_url_response.signed_url
746746
))
747747
}
@@ -797,7 +797,7 @@ impl StorageClient {
797797

798798
let signed_urls: Vec<String> = signed_url_response
799799
.into_iter()
800-
.map(|r| r.signed_url)
800+
.map(|r| format!("{}{}{}", self.project_url, STORAGE_V1, r.signed_url))
801801
.collect();
802802

803803
Ok(signed_urls)

0 commit comments

Comments
 (0)