diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index 3ee3ae4a..de79566c 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -53,8 +53,7 @@ class OnRequest extends Callback public function onRequest(Request $request, Response $response) { try { - var_dump($request); - if ($request->header['request_method'] === 'OPTIONS') { + if ($request->server['request_method'] === 'OPTIONS') { $response->status(200); return $response->end(); }