1
0

Added customized AppendLine() for StringBuilder

This commit is contained in:
2022-05-06 19:29:55 +02:00
parent e38864b32b
commit d9ba209402
6 changed files with 36 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ namespace AMWD.Common.AspNetCore.BasicAuthentication
if (!string.IsNullOrWhiteSpace(Realm))
context.HttpContext.Response.Headers["WWW-Authenticate"] += $" realm=\"{Realm.Replace("\"", "")}\"";
context.HttpContext.Response.StatusCode = 401;
context.Result = new UnauthorizedResult();
}
}