Enabled fallback _method for every request-type.

This commit is contained in:
Simon Sessingo
2017-12-17 10:38:13 +01:00
parent dc7faf52c0
commit c1c25e19ff

View File

@@ -18,7 +18,7 @@ class Request
$this->host = $this->getHeader('http-host');
$this->uri = $this->getHeader('request-uri');
$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()