set user agent correctly
This commit is contained in:
@@ -34,7 +34,7 @@ public sealed class CachedFileProvider : IDisposable
|
|||||||
_isDistributionServer = configuration.GetValueOrDefault(nameof(StaticFilesServerConfiguration.IsDistributionNode), false);
|
_isDistributionServer = configuration.GetValueOrDefault(nameof(StaticFilesServerConfiguration.IsDistributionNode), false);
|
||||||
_basePath = configuration.GetValue<string>(nameof(StaticFilesServerConfiguration.CacheDirectory));
|
_basePath = configuration.GetValue<string>(nameof(StaticFilesServerConfiguration.CacheDirectory));
|
||||||
_httpClient = new();
|
_httpClient = new();
|
||||||
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer"));
|
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer", "1.0.0.0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class ShardClientReadyMessageService : IClientReadyMessageService
|
|||||||
_tokenGenerator = tokenGenerator;
|
_tokenGenerator = tokenGenerator;
|
||||||
_configurationService = configurationService;
|
_configurationService = configurationService;
|
||||||
_httpClient = new();
|
_httpClient = new();
|
||||||
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer"));
|
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronosServer", "1.0.0.0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendDownloadReady(string uid, Guid requestId)
|
public void SendDownloadReady(string uid, Guid requestId)
|
||||||
|
|||||||
Reference in New Issue
Block a user