mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fixed the api key being case sensative #2350
This commit is contained in:
parent
62b0c4d450
commit
51475b05c0
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace Ombi
|
||||||
if (context.Request.Path.StartsWithSegments(new PathString("/api")))
|
if (context.Request.Path.StartsWithSegments(new PathString("/api")))
|
||||||
{
|
{
|
||||||
//Let's check if this is an API Call
|
//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 the supplied API key
|
||||||
// Validate it
|
// Validate it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue