Auth: use Empty() for sending empty http responses in SSO Settings API (#80200)

use Empty() for sending empty http response
This commit is contained in:
Mihai Doarna 2024-01-09 15:27:55 +02:00 committed by GitHub
parent c045a9f395
commit 3332562900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ func (api *Api) updateProviderSettings(c *contextmodel.ReqContext) response.Resp
return response.ErrOrFallback(http.StatusInternalServerError, "Failed to update provider settings", err)
}
return response.Respond(http.StatusNoContent, nil)
return response.Empty(http.StatusNoContent)
}
// swagger:route DELETE /v1/sso-settings/{key} sso_settings removeProviderSettings
@ -209,7 +209,7 @@ func (api *Api) removeProviderSettings(c *contextmodel.ReqContext) response.Resp
return response.Error(http.StatusInternalServerError, "Failed to delete provider settings", err)
}
return response.Respond(http.StatusNoContent, nil)
return response.Empty(http.StatusNoContent)
}
// swagger:parameters getProviderSettings