1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Fix 405 result in usersHandler.

This commit is contained in:
Juliusz Chroboczek 2024-05-03 20:30:46 +02:00
parent 9eb0364016
commit dc0610dc59

View file

@ -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)