diff --git a/src/RestController.php b/src/RestController.php index 9ab38913..0e0aa4bc 100644 --- a/src/RestController.php +++ b/src/RestController.php @@ -834,7 +834,9 @@ protected function _detect_method() $method = $this->input->server('HTTP_X_HTTP_METHOD_OVERRIDE'); } - $method = strtolower($method); + if ($method !== null) { + $method = strtolower($method); + } } if (empty($method)) {