cmd/swarm: trim trailing slash from bzzapi url

pull/3421/head
zelig 8 years ago
parent d44f1a77ee
commit 8e35f54931
  1. 2
      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)
)

Loading…
Cancel
Save