1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-03 22:57:18 +02:00

Fixed: Increase timeout when downloading updates

(cherry picked from commit 467ce70291c793042ffb3ed8942c42e7bc1424d5)
This commit is contained in:
Bogdan 2023-09-01 03:49:24 +03:00
parent 53254f6aeb
commit d6b62e738a

View File

@ -282,6 +282,7 @@ public async Task DownloadFileAsync(string url, string fileName)
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"))