diff --git a/ost_wbs/index.php b/ost_wbs/index.php index 6ef27e8..ff2c623 100644 --- a/ost_wbs/index.php +++ b/ost_wbs/index.php @@ -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);