NewRequestWithContext -> NewRequest

This commit is contained in:
Xpl0itU 2024-04-14 15:45:07 +02:00
parent 7f7c0bd579
commit ef6aa790d9

View file

@ -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
}