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

This commit is contained in:
bergquist 2016-03-09 16:10:46 +01:00
parent 4a5b753fd8
commit 6670e6cd29

View File

@ -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)