diff --git a/src/Tgstation.Server.Api/ApiHeaders.cs b/src/Tgstation.Server.Api/ApiHeaders.cs index acc673bf07..b023727bed 100644 --- a/src/Tgstation.Server.Api/ApiHeaders.cs +++ b/src/Tgstation.Server.Api/ApiHeaders.cs @@ -269,7 +269,7 @@ void AddError(HeaderErrorTypes headerType, string message) if (requestHeaders.Headers.TryGetValue(OAuthProviderHeader, out StringValues oauthProviderValues)) { var oauthProviderString = oauthProviderValues.First(); - if (Enum.TryParse(oauthProviderString, out var oauthProvider)) + if (Enum.TryParse(oauthProviderString, true, out var oauthProvider)) OAuthProvider = oauthProvider; else AddError(HeaderErrorTypes.OAuthProvider, "Invalid OAuth provider!");