Commit dc0610dc authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix 405 result in usersHandler.

parent 9eb03640
......@@ -259,8 +259,7 @@ func usersHandler(w http.ResponseWriter, r *http.Request, g, pth string) {
return
}
if r.Method != "HEAD" && r.Method != "GET" {
http.Error(w, "method not allowed",
http.StatusMethodNotAllowed)
methodNotAllowed(w, "HEAD", "GET")
return
}
users, etag, err := group.GetUsers(g)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment