Commit 9e900b0a authored by Matthew Holt's avatar Matthew Holt

godoc

parent 7613ae3b
...@@ -104,6 +104,9 @@ var hopHeaders = []string{ ...@@ -104,6 +104,9 @@ var hopHeaders = []string{
"Upgrade", "Upgrade",
} }
// InsecureTransport is used to facilitate HTTPS proxying
// when it is OK for upstream to be using a bad certificate,
// since this transport skips verification.
var InsecureTransport http.RoundTripper = &http.Transport{ var InsecureTransport http.RoundTripper = &http.Transport{
Proxy: http.ProxyFromEnvironment, Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{ Dial: (&net.Dialer{
......
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