Remove superfluous WriteHeader calls

This commit is contained in:
Bendodroid 2024-01-15 22:20:53 +01:00
commit 2495ce5808
Signed by: bendodroid
GPG key ID: 3EEE19A0F73D5FFC
3 changed files with 0 additions and 6 deletions

View file

@ -26,10 +26,8 @@ func Root(resp *types.SpaceAPIResponseV14) func(http.ResponseWriter, *http.Reque
return
}
// Respond with OK
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = w.Write(response)
}
}