ODR use of "Bearer" string

This commit is contained in:
Jordan Dominion
2023-10-29 16:39:56 -04:00
parent 1d0371f84a
commit ed618de29e
@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using System.Net;
using System.Threading;
@@ -227,7 +227,7 @@ namespace Tgstation.Server.Host.Controllers
{
if (ApiHeaders == null)
{
Response.Headers.Add(HeaderNames.WWWAuthenticate, new StringValues("basic realm=\"Create TGS bearer token\""));
Response.Headers.Add(HeaderNames.WWWAuthenticate, new StringValues($"basic realm=\"Create TGS {ApiHeaders.BearerAuthenticationScheme} token\""));
return HeadersIssue(false);
}