Skip to content

Commit

Permalink
cmd/swarm: trim trailing slash from bzzapi url
Browse files Browse the repository at this point in the history
  • Loading branch information
zelig committed Dec 13, 2016
1 parent d44f1a7 commit 8e35f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/swarm/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 8e35f54

Please sign in to comment.