set user agent correctly

This commit is contained in:
rootdarkarchon
2024-01-15 12:51:16 +01:00
parent 1dedcb8214
commit 213fea5d41
2 changed files with 2 additions and 2 deletions

View File

@@ -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()