Plugins: Support headers field for check health (#49930) (#49949)

(cherry picked from commit a7813275a5)

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-05-31 18:22:35 +02:00
committed by GitHub
co-authored by Marcus Efraimsson
parent 445909a759
commit 088125ae28
9 changed files with 55 additions and 20 deletions
+1
View File
@@ -318,6 +318,7 @@ func (hs *HTTPServer) CheckHealth(c *models.ReqContext) response.Response {
resp, err := hs.pluginClient.CheckHealth(c.Req.Context(), &backend.CheckHealthRequest{
PluginContext: pCtx,
Headers: map[string]string{},
})
if err != nil {
return translatePluginRequestErrorToAPIError(err)