mirror of
https://github.com/Readarr/Readarr
synced 2026-01-02 05:37:45 +01:00
Fixed: Increase timeout when downloading updates
(cherry picked from commit 467ce70291c793042ffb3ed8942c42e7bc1424d5)
This commit is contained in:
parent
9d08050f96
commit
adc5f4db97
1 changed files with 1 additions and 0 deletions
|
|
@ -282,6 +282,7 @@ public async Task DownloadFileAsync(string url, string fileName, string userAgen
|
|||
var request = new HttpRequest(url);
|
||||
request.AllowAutoRedirect = true;
|
||||
request.ResponseStream = fileStream;
|
||||
request.RequestTimeout = TimeSpan.FromSeconds(300);
|
||||
var response = await GetAsync(request);
|
||||
|
||||
if (response.Headers.ContentType != null && response.Headers.ContentType.Contains("text/html"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue