Commit 6670e6cd by bergquist

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

parent 4a5b753f
...@@ -12,7 +12,7 @@ import ( ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment