Set the content type of server info responses

This commit is contained in:
Elara 2024-03-09 21:38:32 -08:00
parent 06fca3e3fe
commit 10fa7919b0
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ func (sih ServerInfoHandler) ServeHTTP(res http.ResponseWriter, req *http.Reques
sig := ed25519.Sign(sih.PrivateKey, data)
res.Header().Set("X-ProfileFed-Sig", base64.StdEncoding.EncodeToString(sig))
res.Header().Set("Content-Type", "application/json")
_, err = res.Write(data)
if err != nil {
sih.ErrorHandler(err, res)