mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 12:44:15 +01:00
set user agent correctly
This commit is contained in:
parent
1dedcb8214
commit
213fea5d41
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ public sealed class CachedFileProvider : IDisposable
|
|||
_isDistributionServer = configuration.GetValueOrDefault(nameof(StaticFilesServerConfiguration.IsDistributionNode), false);
|
||||
_basePath = configuration.GetValue<string>(nameof(StaticFilesServerConfiguration.CacheDirectory));
|
||||
_httpClient = new();
|
||||
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer"));
|
||||
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer", "1.0.0.0"));
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue