aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorAndrew Rabert <ar@nullsum.net>2019-01-19 21:48:38 -0500
committerAndrew Rabert <ar@nullsum.net>2019-01-19 21:48:38 -0500
commitf229c641a14d45485aac63aabd09f16c5aec28ce (patch)
tree861fe50186c70010e6fc2bca1ef5bd2efd474e6f /Emby.Server.Implementations/ApplicationHost.cs
parent235125df5751cc95782a0a3913ee71c9aba8c896 (diff)
Remove redundant GetDefaultUserAgent
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 97df87377..b4b90ac86 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -752,7 +752,7 @@ namespace Emby.Server.Implementations
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; }
@@ -1010,11 +1010,6 @@ namespace Emby.Server.Implementations
}
}
- protected string GetDefaultUserAgent()
- {
- return ApplicationUserAgent;
- }
-
protected virtual bool SupportsDualModeSockets => true;
private X509Certificate GetCertificate(CertificateInfo info)