[TB] fix: timeout to use settings timeout val
This commit is contained in:
parent
087653e5b6
commit
ea9c90552b
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
|
|||
|
||||
using (HttpClient client = new())
|
||||
{
|
||||
client.Timeout = TimeSpan.FromSeconds(30);
|
||||
client.Timeout = TimeSpan.FromSeconds(Settings.Get.Provider.Timeout);
|
||||
var request = new HttpRequestMessage(HttpMethod.Head, uri);
|
||||
var response = await client.SendAsync(request);
|
||||
if (response.Content.Headers.ContentDisposition != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue