change timeout

This commit is contained in:
YouROK
2021-04-27 08:49:23 +03:00
parent 7a10ef61e6
commit cc8f9eab22

View File

@@ -81,7 +81,7 @@ func fromHttp(link string) (*torrent.TorrentSpec, error) {
}
client := new(http.Client)
client.Timeout = time.Duration(time.Second * 120)
client.Timeout = time.Duration(time.Second * 60)
req.Header.Set("User-Agent", "DWL/1.1.1 (Torrent)")
resp, err := client.Do(req)