mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: use rw.WriteHeader
to write responses without bodies (#13870)
This commit is contained in:
committed by
GitHub
parent
fd10ea1dcc
commit
de2585b0b6
@ -235,7 +235,7 @@ func (api *API) putDeploymentHealthSettings(rw http.ResponseWriter, r *http.Requ
|
||||
|
||||
if bytes.Equal(settingsJSON, []byte(currentSettingsJSON)) {
|
||||
// See: https://www.rfc-editor.org/rfc/rfc7231#section-6.3.5
|
||||
httpapi.Write(r.Context(), rw, http.StatusNoContent, nil)
|
||||
rw.WriteHeader(http.StatusNoContent)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user