send 400 when a bad language was supplied

This commit is contained in:
Brian Seymour 2021-01-11 13:24:17 -06:00
parent b0c462d5ee
commit 65151d6f0c
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
pres, _ := json.Marshal(problem) pres, _ := json.Marshal(problem)
res.WriteHeader(http.StatusBadRequest)
res.Write(pres) res.Write(pres)
} }