Selaa lähdekoodia

feat(cli): allow redirect for plugin-repo.json

bergquist 9 vuotta sitten
vanhempi
commit
6670e6cd29
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      pkg/cmd/grafana-cli/services/services.go

+ 1 - 1
pkg/cmd/grafana-cli/services/services.go

@@ -12,7 +12,7 @@ import (
 var IoHelper m.IoUtil = IoUtilImp{}
 
 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
 	err := res.Body.FromJsonTo(&resp)