Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/ebeccffd36f2e582eaca21fb16ee5615072914f3
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
12 additions and
2 deletions
@ -22,6 +22,16 @@ namespace NzbDrone.Common.Http
public class HttpProvider : IHttpProvider
{
private class GZipWebClient : WebClient
{
protected override WebRequest GetWebRequest ( Uri address )
{
HttpWebRequest request = ( HttpWebRequest ) base . GetWebRequest ( address ) ;
request . AutomaticDecompression = DecompressionMethods . GZip | DecompressionMethods . Deflate ;
return request ;
}
}
private readonly Logger _logger ;
public const string CONTENT_LENGTH_HEADER = "Content-Length" ;
@ -49,7 +59,7 @@ namespace NzbDrone.Common.Http
{
try
{
var client = new WebClient { Credentials = identity } ;
var client = new GZip WebClient { Credentials = identity } ;
client . Headers . Add ( HttpRequestHeader . UserAgent , _userAgent ) ;
return client . DownloadString ( url ) ;
}
@ -107,7 +117,7 @@ namespace NzbDrone.Common.Http
_logger . Debug ( "Downloading [{0}] to [{1}]" , url , fileName ) ;
var stopWatch = Stopwatch . StartNew ( ) ;
var webClient = new WebClient( ) ;
var webClient = new GZip WebClient( ) ;
webClient . Headers . Add ( HttpRequestHeader . UserAgent , _userAgent ) ;
webClient . DownloadFile ( url , fileName ) ;
stopWatch . Stop ( ) ;