mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-30 19:32:57 +01:00
Fix build
This commit is contained in:
@@ -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})")
|
||||
|
||||
Reference in New Issue
Block a user