aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2016-12-13 16:51:42 +0800
committerzelig <viktor.tron@gmail.com>2016-12-13 19:54:13 +0800
commit8e35f54931a0c5036d82f7b7db756d70290cf118 (patch)
treedd989c985e5e6672ebe5c16af9c0e567ca5af4c7 /cmd
parentd44f1a77eeb208a929add38ca4234d9f2a865a26 (diff)
downloaddexon-8e35f54931a0c5036d82f7b7db756d70290cf118.tar
dexon-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.gz
dexon-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.bz2
dexon-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.lz
dexon-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.xz
dexon-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.zst
dexon-8e35f54931a0c5036d82f7b7db756d70290cf118.zip
cmd/swarm: trim trailing slash from bzzapi url
Diffstat (limited to 'cmd')
-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)
)