mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 19:06:33 +02:00
15 lines
365 B
Go
15 lines
365 B
Go
package httputil
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"net/http"
|
|
)
|
|
|
|
// GetInsecureTransport gets an insecure HTTP transport.
|
|
func GetInsecureTransport() *http.Transport {
|
|
transport := http.DefaultTransport.(*http.Transport).Clone()
|
|
transport.DialTLS = nil
|
|
transport.DialTLSContext = nil
|
|
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
|
return transport
|
|
}
|