diff --git a/http.go b/http.go index 099935d51fdbdcf43176aada2b47889d6ffd72da..23e4f0ad53105ba993bb8baef340c3cfd48f2240 100644 --- a/http.go +++ b/http.go @@ -28,7 +28,7 @@ type HTTPRanger struct { // Initialize implements the Initialize function from the RangeFetcher interface. // It performs a HEAD request to retrieve the required information from the server. func (r *HTTPRanger) Initialize(bs int) error { - resp, _ := http.Head(r.URL.String()) + resp, _ := r.client.Head(r.URL.String()) if resp.StatusCode == http.StatusNotFound { return errors.New("404") }