You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
cagedmantis
changed the title
httptest does not support standard TLS client requests
net/http/httptest: does not support standard TLS client requests
Feb 28, 2020
@lmtyler Have you considered using NewTLSServer instead? This is working as intended. I'm going to close this issue. If you think I closed it in error, please comment below.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
attempting to use httptest to mock a http response with a client request
What did you expect to see?
Successful client response
What did you see instead?
Get https://127.0.0.1:65088: x509: certificate signed by unknown authority
This TLS Fails
This TLS Works
You must set InsecureSkipVerify: true for it to work, which I am not able to do
this TLS works but not ok
NON TLS Succeeded
The text was updated successfully, but these errors were encountered: