mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +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() {
|
defer func() {
|
||||||
updateUploadingSize(-contentLength)
|
updateUploadingSize(-contentLength)
|
||||||
}()
|
}()
|
||||||
client := http.Client{
|
client := http.Client{}
|
||||||
Timeout: 10 * time.Second,
|
|
||||||
}
|
|
||||||
req, err := http.NewRequest("GET", url, nil)
|
req, err := http.NewRequest("GET", url, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("failed to create HTTP request: ", err)
|
log.Error("failed to create HTTP request: ", err)
|
||||||
|
Reference in New Issue
Block a user