fix warning
This commit is contained in:
parent
15fafc577d
commit
c7519baff9
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ namespace EllieBot.VotesApi
|
||||||
|
|
||||||
protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
|
protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
|
||||||
{
|
{
|
||||||
|
await Task.Yield();
|
||||||
|
|
||||||
if (!Request.Headers.TryGetValue("Authorization", out var authHeader))
|
if (!Request.Headers.TryGetValue("Authorization", out var authHeader))
|
||||||
{
|
{
|
||||||
return AuthenticateResult.Fail("Authorization header missing");
|
return AuthenticateResult.Fail("Authorization header missing");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue