Fix invalid method HTTP error code

Fixes #54
This commit is contained in:
Anders Pitman 2021-02-15 11:50:27 -07:00
parent c3a182e956
commit 8753c11f57

2
api.go
View File

@ -134,7 +134,7 @@ func (a *Api) handleUsers(w http.ResponseWriter, r *http.Request) {
return
}
default:
w.WriteHeader(406)
w.WriteHeader(405)
io.WriteString(w, "Invalid method for /users")
return
}