returning status for commit hook & rebuild handler

This commit is contained in:
Brad Rydzewski 2014-07-16 00:33:55 -07:00
parent a39be8e480
commit 25a6eb79ae
3 changed files with 4 additions and 1 deletions

View file

@ -166,6 +166,8 @@ func (h *CommitHandler) PostCommit(w http.ResponseWriter, r *http.Request) error
Commit: c,
}
}()
w.WriteHeader(http.StatusOK)
return nil
}

View file

@ -105,6 +105,8 @@ func (h *HookHandler) PostHook(w http.ResponseWriter, r *http.Request) error {
Commit: &c,
}
}()
w.WriteHeader(http.StatusOK)
return nil
}

View file

@ -107,7 +107,6 @@ func main() {
handler.NewHookHandler(users, repos, commits, remotes, queue).Register(router)
handler.NewLoginHandler(users, repos, perms, sess, remotes).Register(router)
handler.NewCommitHandler(repos, commits, perms, sess, queue).Register(router)
handler.NewBranchHandler(repos, commits, perms, sess).Register(router)
handler.NewRepoHandler(repos, commits, perms, sess, remotes).Register(router)
handler.NewBadgeHandler(repos, commits).Register(router)
handler.NewServerHandler(servers, sess).Register(router)