Skip to content

Commit

Permalink
[issue go-jira#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 025c5ed commit 798016d
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 798016d

Please sign in to comment.