chore: use rw.WriteHeader to write responses without bodies (#13870)

This commit is contained in:
Kayla Washburn-Love
2024-07-11 13:38:33 -06:00
committed by GitHub
parent fd10ea1dcc
commit de2585b0b6
12 changed files with 19 additions and 62 deletions
+2 -2
View File
@@ -207,7 +207,7 @@ func (api *API) deleteOAuth2ProviderApp(rw http.ResponseWriter, r *http.Request)
})
return
}
httpapi.Write(ctx, rw, http.StatusNoContent, nil)
rw.WriteHeader(http.StatusNoContent)
}
// @Summary Get OAuth2 application secrets.
@@ -324,7 +324,7 @@ func (api *API) deleteOAuth2ProviderAppSecret(rw http.ResponseWriter, r *http.Re
})
return
}
httpapi.Write(ctx, rw, http.StatusNoContent, nil)
rw.WriteHeader(http.StatusNoContent)
}
// @Summary OAuth2 authorization request.