mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix user agent comment
This commit is contained in:
parent
64a811d783
commit
808d180be4
@ -63,7 +63,7 @@ namespace Jellyfin.Server
|
|||||||
services.AddHttpClient(NamedClient.MusicBrainz, c =>
|
services.AddHttpClient(NamedClient.MusicBrainz, c =>
|
||||||
{
|
{
|
||||||
c.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(_applicationHost.Name.Replace(' ', '-'), _applicationHost.ApplicationVersionString));
|
c.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(_applicationHost.Name.Replace(' ', '-'), _applicationHost.ApplicationVersionString));
|
||||||
c.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(_applicationHost.ApplicationUserAgentAddress));
|
c.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue($"({_applicationHost.ApplicationUserAgentAddress})"));
|
||||||
})
|
})
|
||||||
.ConfigurePrimaryHttpMessageHandler(x => new DefaultHttpClientHandler());
|
.ConfigurePrimaryHttpMessageHandler(x => new DefaultHttpClientHandler());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user