Remove redundant GetDefaultUserAgent
This commit is contained in:
parent
235125df57
commit
f229c641a1
|
@ -752,7 +752,7 @@ namespace Emby.Server.Implementations
|
||||||
|
|
||||||
protected virtual IHttpClient CreateHttpClient()
|
protected virtual IHttpClient CreateHttpClient()
|
||||||
{
|
{
|
||||||
return new HttpClientManager.HttpClientManager(ApplicationPaths, LoggerFactory.CreateLogger("HttpClient"), FileSystemManager, GetDefaultUserAgent);
|
return new HttpClientManager.HttpClientManager(ApplicationPaths, LoggerFactory.CreateLogger("HttpClient"), FileSystemManager, () => ApplicationUserAgent);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IStreamHelper StreamHelper { get; set; }
|
public static IStreamHelper StreamHelper { get; set; }
|
||||||
|
@ -1010,11 +1010,6 @@ namespace Emby.Server.Implementations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string GetDefaultUserAgent()
|
|
||||||
{
|
|
||||||
return ApplicationUserAgent;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual bool SupportsDualModeSockets => true;
|
protected virtual bool SupportsDualModeSockets => true;
|
||||||
|
|
||||||
private X509Certificate GetCertificate(CertificateInfo info)
|
private X509Certificate GetCertificate(CertificateInfo info)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user