1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 13:45:02 +00:00

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

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"))