mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06: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:
parent
229c1f417f
commit
adb7295bab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user