From 7a56bbcea0d34ed7af0e47ab3bb49e3b95d93acf Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sun, 26 Nov 2023 15:58:22 +0100 Subject: [PATCH] Use rd client on fetching first byte --- pkg/realdebrid/unrestrict.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/realdebrid/unrestrict.go b/pkg/realdebrid/unrestrict.go index c3c08b9..7042d88 100644 --- a/pkg/realdebrid/unrestrict.go +++ b/pkg/realdebrid/unrestrict.go @@ -32,7 +32,7 @@ func (rd *RealDebrid) canFetchFirstByte(url string) bool { req.Header.Set("Range", "bytes=0-0") // TODO set a proper client - resp, err := http.DefaultClient.Do(req) + resp, err := rd.client.Do(req) if err != nil { time.Sleep(1 * time.Second) // Add a delay before the next retry continue