aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/swarm')
-rw-r--r--cmd/swarm/upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/swarm/upload.go b/cmd/swarm/upload.go
index 0aceef20b..5393d4ef6 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)
)