forked from cerc-io/plugeth
cmd/swarm: trim trailing slash from bzzapi url
This commit is contained in:
parent
d44f1a77ee
commit
8e35f54931
@ -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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user