Fixed the api key being case sensative #2350

pull/2478/head
Jamie Rees 7 years ago
parent 62b0c4d450
commit 51475b05c0

@ -28,7 +28,7 @@ namespace Ombi
if (context.Request.Path.StartsWithSegments(new PathString("/api")))
{
//Let's check if this is an API Call
if (context.Request.Headers.Keys.Contains("ApiKey"))
if (context.Request.Headers.Keys.Contains("ApiKey", StringComparer.InvariantCultureIgnoreCase))
{
// validate the supplied API key
// Validate it

Loading…
Cancel
Save