code: func HTTPClient(transport http.RoundTripper) *http.Client {
  	return &http.Client{
  		Transport:     transport,
  		CheckRedirect: addRequiredHeadersToRedirectedRequests,
  	}
  }
docs: // HTTPClient returns an HTTP client structure which uses the given transport
  // and contains the necessary headers for redirected requests