Development

- all() in Input class now returns correct array.
- all() now supports json data.
- Minor bugfixes.
This commit is contained in:
Simon Sessingø
2016-11-08 18:16:17 +02:00
parent d9b2328e82
commit 16e326ad9f
2 changed files with 41 additions and 23 deletions
+1 -1
View File
@@ -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() {