Skip to content

Commit 3af0a84

Browse files
committed
Update index.php
Fixed case sensitive header variables
1 parent b12aa2a commit 3af0a84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ost_wbs/index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ class OSTicketAPI
2525
{
2626
public static function open($request)
2727
{
28+
2829
// Header
29-
$key = array("apikey" => getallheaders()["Apikey"]);
30+
$headers = array_change_key_case(getallheaders(), CASE_LOWER);
31+
$key = array("apikey" => $headers["apikey"]);
32+
3033
// Body
3134
$requestBody = json_decode(file_get_contents('php://input'), true);
3235

0 commit comments

Comments
 (0)