aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-08-31 08:52:21 -0600
committercrobibero <cody@robibe.ro>2020-08-31 08:52:21 -0600
commit808d180be4c0317bdca4862ebd3068029d13c95e (patch)
tree9e8558d53e4ef296c94cadd6743e7fa33be343dd
parent64a811d78333287647abf2c5193d005b5758eec3 (diff)
Fix user agent comment
-rw-r--r--Jellyfin.Server/Startup.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server/Startup.cs b/Jellyfin.Server/Startup.cs
index eb74d906f..a468f4dff 100644
--- a/Jellyfin.Server/Startup.cs
+++ b/Jellyfin.Server/Startup.cs
@@ -63,7 +63,7 @@ namespace Jellyfin.Server
services.AddHttpClient(NamedClient.MusicBrainz, c =>
{
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());
}