mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-21 12:19:47 +00:00
remove OS and email from default UserAgent
This commit is contained in:
parent
f6b8cd4b46
commit
abb79bf810
1 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
|
@ -22,8 +21,7 @@ namespace MediaBrowser.Common.Net
|
|||
{
|
||||
_userAgentValues = new[]
|
||||
{
|
||||
new ProductInfoHeaderValue(applicationHost.Name.Replace(' ', '-'), applicationHost.ApplicationVersionString),
|
||||
new ProductInfoHeaderValue($"({Environment.OSVersion}; {applicationHost.ApplicationUserAgentAddress})")
|
||||
new ProductInfoHeaderValue(applicationHost.Name.Replace(' ', '-'), applicationHost.ApplicationVersionString)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue