diff --git a/cmd/camput/camput.go b/cmd/camput/camput.go index c498a6477..502ac559b 100644 --- a/cmd/camput/camput.go +++ b/cmd/camput/camput.go @@ -157,7 +157,7 @@ func newUploader() *Uploader { httpStats := &statsTransport{ transport: &http.Transport{DisableKeepAlives: false}, } - cc.SetHttpClient(&http.Client{Transport: httpStats}) + cc.SetHTTPClient(&http.Client{Transport: httpStats}) pwd, err := os.Getwd() if err != nil { diff --git a/pkg/client/client.go b/pkg/client/client.go index fe9cbab6d..5568e9879 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -69,7 +69,7 @@ func New(server string) *Client { } } -func (c *Client) SetHttpClient(client *http.Client) { +func (c *Client) SetHTTPClient(client *http.Client) { c.httpClient = client }