grab icon indicating copy to clipboard operation
grab copied to clipboard

Unresolved: client.HTTPClient.Transport

Open duglaskl opened this issue 5 years ago • 1 comments

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?

duglaskl avatar Jun 19 '20 10:06 duglaskl

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},
  	}

lucantolinos avatar Feb 11 '22 10:02 lucantolinos