Remove timeout setting from HTTP client in file upload process

This commit is contained in:
2025-05-26 21:11:25 +08:00
parent f3eb79b3fa
commit e6fb0ceda3

View File

@@ -522,9 +522,7 @@ func CreateServerDownloadTask(uid uint, url, filename, description string, resou
defer func() {
updateUploadingSize(-contentLength)
}()
client := http.Client{
Timeout: 10 * time.Second,
}
client := http.Client{}
req, err := http.NewRequest("GET", url, nil)
if err != nil {
log.Error("failed to create HTTP request: ", err)