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

@@ -18,7 +18,7 @@ public class ShardClientReadyMessageService : IClientReadyMessageService
_tokenGenerator = tokenGenerator;
_configurationService = configurationService;
_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)