Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ost_wbs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// Autoload class files
spl_autoload_register( function ( $class ) {
require_once 'classes/class.' . lcfirst($class) . '.php';
require_once 'classes/class.' . strtolower($class) . '.php';
});

// Main Class
Expand All @@ -26,7 +26,7 @@ class OSTicketAPI
public static function open($request)
{
// Header
$key = array("apikey" => getallheaders()["apikey"]);
$key = array("apikey" => array_change_key_case(getallheaders()), CASE_LOWER)["apikey"];

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