Fixed: Increase timeout when downloading updates

pull/5987/head
Bogdan 1 year ago committed by GitHub
parent b76de3987b
commit 467ce70291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -282,6 +282,7 @@ namespace NzbDrone.Common.Http
var request = new HttpRequest(url); var request = new HttpRequest(url);
request.AllowAutoRedirect = true; request.AllowAutoRedirect = true;
request.ResponseStream = fileStream; request.ResponseStream = fileStream;
request.RequestTimeout = TimeSpan.FromSeconds(300);
var response = await GetAsync(request); var response = await GetAsync(request);
if (response.Headers.ContentType != null && response.Headers.ContentType.Contains("text/html")) if (response.Headers.ContentType != null && response.Headers.ContentType.Contains("text/html"))

Loading…
Cancel
Save