Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b11ccc7

Browse files
committed
增加超时时间
1 parent 4af3d65 commit b11ccc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http/controller/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (DownloadController) AddNewDownload(ctx echo.Context) error {
142142

143143
func (DownloadController) headWithTimeout(dlUrl string) (*http.Response, error) {
144144
client := http.Client{
145-
Timeout: 2 * time.Second,
145+
Timeout: 5 * time.Second,
146146
}
147147

148148
return client.Head(dlUrl)

0 commit comments

Comments
 (0)