From d9ef19df15966d39b60e659ab1211b452fed0088 Mon Sep 17 00:00:00 2001 From: Mahmoud Elnezamy Date: Thu, 14 Mar 2019 00:05:16 +0200 Subject: [PATCH] Fix HTTP status when request method is OPTIONS --- system/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Route.php b/system/Route.php index 2bf8771..7085335 100644 --- a/system/Route.php +++ b/system/Route.php @@ -599,7 +599,7 @@ public function end() { $this->callback($call, $this->req->args); } count($this->after) && $this->emit($this->after); - } else { + } else if($this->req->method != 'OPTIONS'){ http_response_code(404); print('

404 Not Found

'); }