From 8fb1c1556e7406fc296e05983883579cef2838bf Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sun, 14 Apr 2024 01:10:02 +0200 Subject: [PATCH] Fix typo in usersHandler. --- webserver/api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/webserver/api.go b/webserver/api.go index 67ea2b3..0d0ba0e 100644 --- a/webserver/api.go +++ b/webserver/api.go @@ -280,7 +280,6 @@ func usersHandler(w http.ResponseWriter, r *http.Request, g, pth string) { username := first2[1:] if r.Method == "HEAD" || r.Method == "GET" { - w.Header().Set("content-type", "application/json") user, etag, err := group.GetSanitisedUser(g, username) if err != nil { httpError(w, err)