Allow non-tls config downloading
This commit is contained in:
parent
0afa99c17b
commit
4fd5fa006b
|
@ -750,7 +750,7 @@ func loadConfig(config string) ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch u.Scheme {
|
switch u.Scheme {
|
||||||
case "https": // http not permitted
|
case "https", "http":
|
||||||
return fetchConfig(u)
|
return fetchConfig(u)
|
||||||
default:
|
default:
|
||||||
// If it isn't a https scheme, try it as a file.
|
// If it isn't a https scheme, try it as a file.
|
||||||
|
|
Loading…
Reference in New Issue