blossom: remove double slash.
fixes nostr:nevent1qvzqqqqqqypzqtrucc4xjl4r57px2g0nl560pje8x6fuhe0fxy8n23ylgd3z5hxuqythwumn8ghj7un9d3shjtnswf5k6ctv9ehx2ap0qy88wumn8ghj7mn0wvhxcmmv9uqzpctrpfqmk9nqzdlvemhgrskz6yyer4j93gudlrlf7jn2qafys9pzyw9u5s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user