mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 03:12:59 +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:
@ -243,7 +243,7 @@ func (hs *HTTPServer) GetPluginMarkdown(c *models.ReqContext) response.Response
|
||||
}
|
||||
|
||||
resp := response.Respond(200, content)
|
||||
resp.Header("Content-Type", "text/plain; charset=utf-8")
|
||||
resp.SetHeader("Content-Type", "text/plain; charset=utf-8")
|
||||
return resp
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user