diff options
Diffstat (limited to 'MediaBrowser.Common/Net/UserAgentDelegatingHandler.cs')
| -rw-r--r-- | MediaBrowser.Common/Net/UserAgentDelegatingHandler.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Common/Net/UserAgentDelegatingHandler.cs b/MediaBrowser.Common/Net/UserAgentDelegatingHandler.cs index c016af87c..31af85f7d 100644 --- a/MediaBrowser.Common/Net/UserAgentDelegatingHandler.cs +++ b/MediaBrowser.Common/Net/UserAgentDelegatingHandler.cs @@ -14,10 +14,13 @@ namespace MediaBrowser.Common.Net { private readonly ProductInfoHeaderValue[] _userAgentValues; - /// <inheritdoc /> + /// <summary> + /// Initializes a new instance of the <see cref="UserAgentDelegatingHandler"/> class. + /// </summary> + /// <param name="applicationHost">Instance of the <see cref="IApplicationHost"/> interface.</param> public UserAgentDelegatingHandler(IApplicationHost applicationHost) { - _userAgentValues = new [] + _userAgentValues = new[] { new ProductInfoHeaderValue(applicationHost.Name.Replace(' ', '-'), applicationHost.ApplicationVersionString), new ProductInfoHeaderValue($"({Environment.OSVersion}; {applicationHost.ApplicationUserAgentAddress})") |
