Skip to content

Commit 8e35f54

Browse files
committed
cmd/swarm: trim trailing slash from bzzapi url
1 parent d44f1a7 commit 8e35f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/swarm/upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
func upload(ctx *cli.Context) {
3737
args := ctx.Args()
3838
var (
39-
bzzapi = ctx.GlobalString(SwarmApiFlag.Name)
39+
bzzapi = strings.TrimRight(ctx.GlobalString(SwarmApiFlag.Name), "/")
4040
recursive = ctx.GlobalBool(SwarmRecursiveUploadFlag.Name)
4141
wantManifest = ctx.GlobalBoolT(SwarmWantManifestFlag.Name)
4242
)

0 commit comments

Comments
 (0)