From ef6aa790d93a35c714f61c1cb6af2bb02636a913 Mon Sep 17 00:00:00 2001 From: Xpl0itU <24777100+Xpl0itU@users.noreply.github.com> Date: Sun, 14 Apr 2024 15:45:07 +0200 Subject: [PATCH] NewRequestWithContext -> NewRequest --- downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader.go b/downloader.go index 21018aa..ba11b0c 100644 --- a/downloader.go +++ b/downloader.go @@ -49,7 +49,7 @@ func downloadFileWithSemaphore(ctx context.Context, progressReporter ProgressRep basePath := filepath.Base(dstPath) for attempt := 1; attempt <= maxRetries; attempt++ { - req, err := http.NewRequestWithContext(ctx, "GET", downloadURL, nil) + req, err := http.NewRequest("GET", downloadURL, nil) if err != nil { return err }