CC should return not fount 404

This commit is contained in:
Brad Rydzewski 2014-11-01 11:58:56 -07:00
parent 20dfd3d70b
commit 8d5ac0004f

View file

@ -115,7 +115,7 @@ func GetCC(c web.C, w http.ResponseWriter, r *http.Request) {
repo, err := datastore.GetRepoName(ctx, host, owner, name)
if err != nil {
w.Write(defaultBadge.none)
w.WriteHeader(http.StatusNotFound)
return
}
commits, err := datastore.GetCommitList(ctx, repo)