mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Enabled fallback _method for every request-type.
This commit is contained in:
@@ -18,7 +18,7 @@ class Request
|
|||||||
$this->host = $this->getHeader('http-host');
|
$this->host = $this->getHeader('http-host');
|
||||||
$this->uri = $this->getHeader('request-uri');
|
$this->uri = $this->getHeader('request-uri');
|
||||||
$this->input = new Input($this);
|
$this->input = new Input($this);
|
||||||
$this->method = strtolower($this->input->get('_method', $this->getHeader('request-method'), 'post'));
|
$this->method = strtolower($this->input->get('_method', $this->getHeader('request-method')));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseHeaders()
|
protected function parseHeaders()
|
||||||
|
|||||||
Reference in New Issue
Block a user