Merge pull request #14 from mattn/proxy

proxy friendly
This commit is contained in:
Adam Tauber 2017-02-06 10:55:45 +01:00 committed by GitHub
commit 72b8391cef

View File

@ -24,7 +24,9 @@ import (
var CLIENT *http.Client = &http.Client{
Timeout: time.Duration(5 * time.Second),
}
var TRANSPORT *http.Transport = &http.Transport{}
var TRANSPORT *http.Transport = &http.Transport{
Proxy: http.ProxyFromEnvironment,
}
var VIEWS []string = []string{
"url",