mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Remove timeout setting from HTTP client in file upload process
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user