1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +01:00

Fix typo in usersHandler.

This commit is contained in:
Juliusz Chroboczek 2024-04-14 01:10:02 +02:00
parent df46e6df21
commit 8fb1c1556e

View file

@ -280,7 +280,6 @@ func usersHandler(w http.ResponseWriter, r *http.Request, g, pth string) {
username := first2[1:] username := first2[1:]
if r.Method == "HEAD" || r.Method == "GET" { if r.Method == "HEAD" || r.Method == "GET" {
w.Header().Set("content-type", "application/json")
user, etag, err := group.GetSanitisedUser(g, username) user, etag, err := group.GetSanitisedUser(g, username)
if err != nil { if err != nil {
httpError(w, err) httpError(w, err)