Auth: Send an empty http response without the json header in SSO Settings API (#80197)

send an empty http response without the json header
This commit is contained in:
Mihai Doarna
2024-01-09 12:14:39 +02:00
committed by GitHub
parent 229c1f417f
commit adb7295bab
+2 -2
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.JSON(http.StatusNoContent, nil)
return response.Respond(http.StatusNoContent, nil)
}
// 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.JSON(http.StatusNoContent, nil)
return response.Respond(http.StatusNoContent, nil)
}
// swagger:parameters getProviderSettings