fix for issue #51
This commit is contained in:
parent
088c45941c
commit
0a8ef525e9
2 changed files with 2 additions and 2 deletions
|
@ -145,8 +145,8 @@ func setupHandlers() {
|
|||
m.Get("/:host/:owner/:name/commit/:commit/build/:label/out.txt", handler.RepoHandler(handler.BuildOut))
|
||||
m.Get("/:host/:owner/:name/commit/:commit/build/:label", handler.RepoHandler(handler.CommitShow))
|
||||
m.Get("/:host/:owner/:name/commit/:commit", handler.RepoHandler(handler.CommitShow))
|
||||
m.Get("/:host/:owner/:name/tree/:branch/status.png", handler.ErrorHandler(handler.Badge))
|
||||
m.Get("/:host/:owner/:name/tree/:branch", handler.RepoHandler(handler.RepoDashboard))
|
||||
m.Get("/:host/:owner/:name/tree/:branch/", handler.RepoHandler(handler.RepoDashboard))
|
||||
m.Get("/:host/:owner/:name/status.png", handler.ErrorHandler(handler.Badge))
|
||||
m.Get("/:host/:owner/:name/settings", handler.RepoAdminHandler(handler.RepoSettingsForm))
|
||||
m.Get("/:host/:owner/:name/params", handler.RepoAdminHandler(handler.RepoParamsForm))
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
// repository and an optional branch.
|
||||
// TODO this needs to implement basic caching
|
||||
func Badge(w http.ResponseWriter, r *http.Request) error {
|
||||
branchParam := r.FormValue(":branch")
|
||||
branchParam := r.FormValue("branch")
|
||||
hostParam := r.FormValue(":host")
|
||||
ownerParam := r.FormValue(":owner")
|
||||
nameParam := r.FormValue(":name")
|
||||
|
|
Loading…
Reference in a new issue