mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 06:42:04 +08:00
Add debug headers when downloading plugins (#92579)
This commit is contained in:

committed by
GitHub

parent
4209c13155
commit
f9cd0fe5d1
@ -465,7 +465,8 @@ func (hs *HTTPServer) InstallPlugin(c *contextmodel.ReqContext) response.Respons
|
||||
}
|
||||
|
||||
compatOpts := plugins.NewCompatOpts(hs.Cfg.BuildVersion, runtime.GOOS, runtime.GOARCH)
|
||||
err := hs.pluginInstaller.Add(c.Req.Context(), pluginID, dto.Version, compatOpts)
|
||||
ctx := repo.WithRequestOrigin(c.Req.Context(), "api")
|
||||
err := hs.pluginInstaller.Add(ctx, pluginID, dto.Version, compatOpts)
|
||||
if err != nil {
|
||||
var dupeErr plugins.DuplicateError
|
||||
if errors.As(err, &dupeErr) {
|
||||
|
Reference in New Issue
Block a user