Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
Fixed case sensitive header variables
  • Loading branch information
BMSVieira committed Aug 11, 2022
1 parent b12aa2a commit 3af0a84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ost_wbs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ class OSTicketAPI
{
public static function open($request)
{

// Header
$key = array("apikey" => getallheaders()["Apikey"]);
$headers = array_change_key_case(getallheaders(), CASE_LOWER);
$key = array("apikey" => $headers["apikey"]);

// Body
$requestBody = json_decode(file_get_contents('php://input'), true);

Expand Down

0 comments on commit 3af0a84

Please sign in to comment.