mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugin proxy: Handle URL parsing errors (#29093)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@@ -140,7 +140,8 @@ func getPluginProxiedRequest(ctx *models.ReqContext, cfg *setting.Cfg, route *pl
|
||||
ReqRole: models.ROLE_EDITOR,
|
||||
}
|
||||
}
|
||||
proxy := NewApiPluginProxy(ctx, "", route, "", cfg)
|
||||
proxy, err := NewApiPluginProxy(ctx, "", route, "", cfg)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
req, err := http.NewRequest(http.MethodGet, route.URL, nil)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
Reference in New Issue
Block a user