mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 07:02:13 +00:00
Development
- all() in Input class now returns correct array. - all() now supports json data. - Minor bugfixes.
This commit is contained in:
@@ -26,7 +26,7 @@ class Request {
|
||||
$this->uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : array();
|
||||
$this->method = (isset($_POST['_method'])) ? strtolower($_POST['_method']) : (isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : array());
|
||||
$this->headers = $this->getAllHeaders();
|
||||
$this->input = new Input();
|
||||
$this->input = new Input($this);
|
||||
}
|
||||
|
||||
protected function getAllHeaders() {
|
||||
|
||||
Reference in New Issue
Block a user