Fix 405 result in usersHandler.
This commit is contained in:
+1
-2
@@ -259,8 +259,7 @@ func usersHandler(w http.ResponseWriter, r *http.Request, g, pth string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if r.Method != "HEAD" && r.Method != "GET" {
|
if r.Method != "HEAD" && r.Method != "GET" {
|
||||||
http.Error(w, "method not allowed",
|
methodNotAllowed(w, "HEAD", "GET")
|
||||||
http.StatusMethodNotAllowed)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
users, etag, err := group.GetUsers(g)
|
users, etag, err := group.GetUsers(g)
|
||||||
|
|||||||
Reference in New Issue
Block a user