Skip to content

Commit

Permalink
U: energy cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Dec 17, 2024
1 parent 9f68a07 commit 5bb509c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/internal/tools/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"io"
"os"
"path/filepath"
"time"
)

// DownloadFile 下载文件
Expand All @@ -32,7 +33,7 @@ func DownloadFile(url, localPath, proxy string, callback func(totalLength, proce
)
tmpFilePath := localPath + ".download"
options := &rawhttp.Options{
Timeout: -1,
Timeout: 30 * time.Second,
FollowRedirects: true,
MaxRedirects: 10,
AutomaticHostHeader: true,
Expand Down

0 comments on commit 5bb509c

Please sign in to comment.