Fixed: Increase timeout when downloading updates

This commit is contained in:
Bogdan 2023-09-01 03:49:24 +03:00 committed by GitHub
parent b76de3987b
commit 467ce70291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ namespace NzbDrone.Common.Http
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"))