Skip to content

Commit

Permalink
[issue #1] trim trailing / on uri
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Feb 16, 2015
1 parent deb3a72 commit 3a0867d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jira/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func New(opts map[string]string) *Cli {
homedir := os.Getenv("HOME")
cookieJar, _ := cookiejar.New(nil)
endpoint, _ := opts["endpoint"]
url, _ := url.Parse(endpoint)
url, _ := url.Parse(strings.TrimRight(endpoint, "/"))

cli := &Cli{
endpoint: url,
Expand Down

0 comments on commit 3a0867d

Please sign in to comment.