aboutsummaryrefslogtreecommitdiffstats
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
parentd44f1a77eeb208a929add38ca4234d9f2a865a26 (diff)
downloadgo-tangerine-8e35f54931a0c5036d82f7b7db756d70290cf118.tar
go-tangerine-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.gz
go-tangerine-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.bz2
go-tangerine-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.lz
go-tangerine-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.xz
go-tangerine-8e35f54931a0c5036d82f7b7db756d70290cf118.tar.zst
go-tangerine-8e35f54931a0c5036d82f7b7db756d70290cf118.zip
cmd/swarm: trim trailing slash from bzzapi url
-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)
)