fixes for server auth

This commit is contained in:
rootdarkarchon
2023-01-11 14:31:33 +01:00
parent 617bc6afc8
commit c1f329c233
3 changed files with 4 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ public class CachedFileProvider
_logger.LogInformation("Did not find {hash}, downloading from {server}", hash, downloadUrl);
using var requestMessage = new HttpRequestMessage(HttpMethod.Get, downloadUrl);
requestMessage.Headers.Authorization = new AuthenticationHeaderValue(auth);
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", auth);
var response = await _httpClient.SendAsync(requestMessage).ConfigureAwait(false);
try