mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 12:34:14 +01:00
fixes for server auth
This commit is contained in:
parent
617bc6afc8
commit
c1f329c233
3 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue