diff --git a/Request.php b/Request.php index 8131e11..2c1237b 100644 --- a/Request.php +++ b/Request.php @@ -17,7 +17,7 @@ class Request public function __construct() { $input = json_decode(file_get_contents('php://input')) ?? []; - if ( $_SERVER['REQUEST_METHOD'] == 'PATCH' ) { + if ( isset($_SERVER["REQUEST_METHOD"]) && $_SERVER['REQUEST_METHOD'] == 'PATCH' ) { if ( isset($_REQUEST["parameters"]) ) { $_REQUEST = array_merge($_REQUEST, $_REQUEST['parameters']); }