grab
grab copied to clipboard
Unresolved: client.HTTPClient.Transport
Hi,
at 2017 we implemented a solution like this: https://github.com/cavaliercoder/grab/issues/17
We updated our project, recently. Now there ist an error message at
client.HTTPClient.Transport = &http.Transport{
The client.HTTPClient.Transport is an unresolved reference. How we can get it to work now?
Here is the code adapted from the grab source, where the default client is created (here added TLS disabling for localhost HTTPs in my case)
client.HTTPClient = &http.Client{ Transport: &http.Transport{ Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, }