jochasinga / requests

Functional HTTP Requests in Go
Other
232 stars 11 forks source link

InsecureVerifySkip Flag does not work with this #7

Open mathewusher opened 7 years ago

mathewusher commented 7 years ago

When running the crypto/tls package and setting the InsecureVerifySkip to true I still get the error x509: certificate signed by unknown authority golang

jochasinga commented 7 years ago

@mathewusher thanks for letting me know. I'll look into it asap.

jochasinga commented 7 years ago

@mathewusher sorry for being away for a while. Did you create a &tls.Config pointer or just the tls.Config struct? I tested the code with:


        tlsConfig := func(r *requests.Request) {
                r.TLSClientConfig = &tls.Config{
                        InsecureSkipVerify: true,
                }
        }

       res, err := requests.Get("https://requestb.in/opfq41op", tlsConfig)

And I received 200 from my end.