mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-18 09:04:50 -04:00
NewRequestWithContext -> NewRequest
This commit is contained in:
parent
7f7c0bd579
commit
ef6aa790d9
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func downloadFileWithSemaphore(ctx context.Context, progressReporter ProgressRep
|
||||||
basePath := filepath.Base(dstPath)
|
basePath := filepath.Base(dstPath)
|
||||||
|
|
||||||
for attempt := 1; attempt <= maxRetries; attempt++ {
|
for attempt := 1; attempt <= maxRetries; attempt++ {
|
||||||
req, err := http.NewRequestWithContext(ctx, "GET", downloadURL, nil)
|
req, err := http.NewRequest("GET", downloadURL, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue