cmd/swarm: trim trailing slash from bzzapi url

This commit is contained in:
zelig 2016-12-13 09:51:42 +01:00
parent d44f1a77ee
commit 8e35f54931

View File

@ -36,7 +36,7 @@ import (
func upload(ctx *cli.Context) { func upload(ctx *cli.Context) {
args := ctx.Args() args := ctx.Args()
var ( var (
bzzapi = ctx.GlobalString(SwarmApiFlag.Name) bzzapi = strings.TrimRight(ctx.GlobalString(SwarmApiFlag.Name), "/")
recursive = ctx.GlobalBool(SwarmRecursiveUploadFlag.Name) recursive = ctx.GlobalBool(SwarmRecursiveUploadFlag.Name)
wantManifest = ctx.GlobalBoolT(SwarmWantManifestFlag.Name) wantManifest = ctx.GlobalBoolT(SwarmWantManifestFlag.Name)
) )