mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(cli): allow redirect for plugin-repo.json
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
|||||||
var IoHelper m.IoUtil = IoUtilImp{}
|
var IoHelper m.IoUtil = IoUtilImp{}
|
||||||
|
|
||||||
func ListAllPlugins(repoUrl string) (m.PluginRepo, error) {
|
func ListAllPlugins(repoUrl string) (m.PluginRepo, error) {
|
||||||
res, _ := goreq.Request{Uri: repoUrl}.Do()
|
res, _ := goreq.Request{Uri: repoUrl, MaxRedirects: 3}.Do()
|
||||||
|
|
||||||
var resp m.PluginRepo
|
var resp m.PluginRepo
|
||||||
err := res.Body.FromJsonTo(&resp)
|
err := res.Body.FromJsonTo(&resp)
|
||||||
|
|||||||
Reference in New Issue
Block a user