Object pointer should be ref
@@ -22,7 +22,7 @@ type defaultHttpClient struct {
client *http.Client
}
-func (c defaultHttpClient) Do(request *http.Request, timeout time.Duration) (response *http.Response, error error) {
+func (c *defaultHttpClient) Do(request *http.Request, timeout time.Duration) (response *http.Response, error error) {
if c.client.Timeout != timeout { // Create a new client with the right timeout
c.client = &http.Client{Timeout: timeout,}
}
