diff --git a/cmd/swarm/upload.go b/cmd/swarm/upload.go index 0aceef20bd..5393d4ef6a 100644 --- a/cmd/swarm/upload.go +++ b/cmd/swarm/upload.go @@ -36,7 +36,7 @@ import ( func upload(ctx *cli.Context) { args := ctx.Args() var ( - bzzapi = ctx.GlobalString(SwarmApiFlag.Name) + bzzapi = strings.TrimRight(ctx.GlobalString(SwarmApiFlag.Name), "/") recursive = ctx.GlobalBool(SwarmRecursiveUploadFlag.Name) wantManifest = ctx.GlobalBoolT(SwarmWantManifestFlag.Name) )