mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user