← Back to context

Comment by alyandon

1 month ago

  https://antonz.org/go-1-26/#httptest-example

> To fix this issue, the HTTP client returned by httptest.Server.Client now redirects requests for example.com and its subdomains to the test server

I'm really conflicted about the idea that the https client should silently hijack requests to example.com in order to make a dummy certificate work... or am I just really misunderstanding?