Skip to content

Commit

Permalink
Make slash at end of github path optional
Browse files Browse the repository at this point in the history
  • Loading branch information
biilmann committed Sep 23, 2017
1 parent 7b5fd53 commit 7a3f4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type GitHubGateway struct {
}

var pathRegexp = regexp.MustCompile("^/github/?")
var allowedRegexp = regexp.MustCompile("^/github/(git|contents|pulls|branches)/")
var allowedRegexp = regexp.MustCompile("^/github/(git|contents|pulls|branches)/?")

func NewGitHubGateway() *GitHubGateway {
return &GitHubGateway{
Expand Down

0 comments on commit 7a3f4e8

Please sign in to comment.