mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 05:08:36 +08:00
API Response implements http.ResponseWriter (#32046)
* rename response.Header -> response.SetHeader to free up method name for http.ResponseWriter ifc * normalresponse implements http.ResponseWriter
This commit is contained in:
@ -561,10 +561,10 @@ func CalculateDashboardDiff(c *models.ReqContext, apiOptions dtos.CalculateDiffO
|
||||
}
|
||||
|
||||
if options.DiffType == dashdiffs.DiffDelta {
|
||||
return response.Respond(200, result.Delta).Header("Content-Type", "application/json")
|
||||
return response.Respond(200, result.Delta).SetHeader("Content-Type", "application/json")
|
||||
}
|
||||
|
||||
return response.Respond(200, result.Delta).Header("Content-Type", "text/html")
|
||||
return response.Respond(200, result.Delta).SetHeader("Content-Type", "text/html")
|
||||
}
|
||||
|
||||
// RestoreDashboardVersion restores a dashboard to the given version.
|
||||
|
Reference in New Issue
Block a user