mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 19:47:21 +01:00
downgrade again to net7?
This commit is contained in:
parent
84730d21ea
commit
dd2e65de12
2 changed files with 3 additions and 3 deletions
|
|
@ -107,9 +107,9 @@ public class MareConfigurationServiceClient<T> : IHostedService, IConfigurationS
|
|||
try
|
||||
{
|
||||
_logger.LogInformation("Getting {key} from Http", key);
|
||||
HttpRequestMessage msg = new(HttpMethod.Get, GetRoute(key, Convert.ToString(defaultValue, CultureInfo.InvariantCulture)));
|
||||
using HttpRequestMessage msg = new(HttpMethod.Get, GetRoute(key, Convert.ToString(defaultValue, CultureInfo.InvariantCulture)));
|
||||
msg.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _serverTokenGenerator.Token);
|
||||
var response = await _httpClient.SendAsync(msg).ConfigureAwait(false);
|
||||
using var response = await _httpClient.SendAsync(msg).ConfigureAwait(false);
|
||||
response.EnsureSuccessStatusCode();
|
||||
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
|
||||
_logger.LogInformation("Http Response for {key} = {value}", key, content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue