mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-07 03:45:02 +00:00
cmd/swarm: trim trailing slash from bzzapi url
This commit is contained in:
parent
d44f1a77ee
commit
8e35f54931
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue