lowercase golang/go repo check

This commit is contained in:
Shawn Smith
2015-08-27 18:57:51 +09:00
parent 867357cc06
commit 6cb91be295

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"log"
"net/http"
"strings"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
@@ -14,7 +15,7 @@ func CheckHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
repo := r.FormValue("repo")
if repo == "golang/go" {
if strings.ToLower(repo) == "golang/go" {
w.WriteHeader(http.StatusInternalServerError)
w.Write([]byte("We've decided to omit results for the Go repository because it has lots of test files that (purposely) don't pass our checks. Go gets an A+ in our books though!"))
return