diff --git a/Server/Auth/ApiAuthorizationFilter.cs b/Server/Auth/ApiAuthorizationFilter.cs index a303dfd6..4d1d4736 100644 --- a/Server/Auth/ApiAuthorizationFilter.cs +++ b/Server/Auth/ApiAuthorizationFilter.cs @@ -33,6 +33,7 @@ namespace Remotely.Server.Auth if (headerComponents.Length < 2) { context.HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; + context.Result = new UnauthorizedResult(); return; }; @@ -49,6 +50,7 @@ namespace Remotely.Server.Auth if (authComponents.Length < 2) { context.HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; + context.Result = new UnauthorizedResult(); return; };