diff options
author | zelig <viktor.tron@gmail.com> | 2016-12-13 16:51:42 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2016-12-13 19:54:13 +0800 |
commit | 8e35f54931a0c5036d82f7b7db756d70290cf118 (patch) | |
tree | dd989c985e5e6672ebe5c16af9c0e567ca5af4c7 /cmd/swarm/upload.go | |
parent | d44f1a77eeb208a929add38ca4234d9f2a865a26 (diff) | |
download | go-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
Diffstat (limited to 'cmd/swarm/upload.go')
-rw-r--r-- | cmd/swarm/upload.go | 2 |
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) ) |