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:
Owen Diehl
2021-03-17 13:12:28 -04:00
committed by GitHub
parent 36614b03f7
commit 7a4ab13a79
4 changed files with 28 additions and 11 deletions

View File

@ -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
}