From 9e900b0a08ef8f72f2b3a291cf2cb0348335354d Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 25 Jan 2016 20:45:23 -0700 Subject: [PATCH] godoc --- middleware/proxy/reverseproxy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/middleware/proxy/reverseproxy.go b/middleware/proxy/reverseproxy.go index 4b18a822..32ca2378 100644 --- a/middleware/proxy/reverseproxy.go +++ b/middleware/proxy/reverseproxy.go @@ -104,6 +104,9 @@ var hopHeaders = []string{ "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{ Proxy: http.ProxyFromEnvironment, Dial: (&net.Dialer{