Skip to content

Commit

Permalink
fix: Avoid double slash in blossom URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Nov 21, 2024
1 parent 1d54359 commit 84bea65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gossip-lib/src/blossom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Blossom {
hash: HashOutput,
authorize: bool,
) -> Result<bool, Error> {
let url = format!("{}/{}", base_url, hash);
let url = format!("{}{}", base_url, hash);
let mut req_builder = self.client.head(url);

if authorize {
Expand Down Expand Up @@ -149,7 +149,7 @@ impl Blossom {
hash: HashOutput,
authorize: bool,
) -> Result<Response, Error> {
let url = format!("{}/{}", base_url, hash);
let url = format!("{}{}", base_url, hash);
let mut req_builder = self.client.get(url);

if authorize {
Expand Down Expand Up @@ -193,7 +193,7 @@ impl Blossom {
vec![hash],
)?;

let url = format!("{}/upload", base_url);
let url = format!("{}upload", base_url);
let response = self
.client
.put(url)
Expand Down

0 comments on commit 84bea65

Please sign in to comment.