mirror of https://github.com/Sonarr/Sonarr
Fixed: Increase timeout when downloading updates
This commit is contained in:
parent
b76de3987b
commit
467ce70291
|
@ -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…
Reference in New Issue