From 8d018c0c04cd27ec74eb9984ecf00b3ab19bb8b9 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 20 Jun 2026 06:57:10 -0300 Subject: [PATCH] blossom: remove double slash. fixes nostr:nevent1qvzqqqqqqypzqtrucc4xjl4r57px2g0nl560pje8x6fuhe0fxy8n23ylgd3z5hxuqythwumn8ghj7un9d3shjtnswf5k6ctv9ehx2ap0qy88wumn8ghj7mn0wvhxcmmv9uqzpctrpfqmk9nqzdlvemhgrskz6yyer4j93gudlrlf7jn2qafys9pzyw9u5s --- nipb0/blossom/download.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nipb0/blossom/download.go b/nipb0/blossom/download.go index 441af4e..bed76c5 100644 --- a/nipb0/blossom/download.go +++ b/nipb0/blossom/download.go @@ -15,7 +15,7 @@ import ( func (c *Client) Download(ctx context.Context, hash [32]byte) ([]byte, error) { hhash := hex.EncodeToString(hash[:]) - req, err := http.NewRequestWithContext(ctx, "GET", c.mediaserver+"/"+hhash, nil) + req, err := http.NewRequestWithContext(ctx, "GET", c.mediaserver+hhash, nil) if err != nil { return nil, fmt.Errorf("failed to create request: %w", err) } @@ -43,7 +43,7 @@ func (c *Client) Download(ctx context.Context, hash [32]byte) ([]byte, error) { func (c *Client) DownloadToFile(ctx context.Context, hash [32]byte, filePath string) error { hhash := hex.EncodeToString(hash[:]) - req, err := http.NewRequestWithContext(ctx, "GET", c.mediaserver+"/"+hhash, nil) + req, err := http.NewRequestWithContext(ctx, "GET", c.mediaserver+hhash, nil) if err != nil { return fmt.Errorf("failed to create request: %w", err) }