Use download client properly when fetching first byte

This commit is contained in:
Ben Sarmiento
2024-02-17 15:07:31 +01:00
parent b4b4ebbc49
commit 02d900971d
2 changed files with 2 additions and 2 deletions

View File

@@ -295,7 +295,8 @@ func (r *HTTPClient) CanFetchFirstByte(url string) bool {
}
req.Header.Set("Range", "bytes=0-0")
req = req.WithContext(ctx)
resp, err := r.client.Do(req)
resp, err := r.Do(req)
if err != nil {
return false
}