fixes a bug when overriding method via the X-HTTP-METHOD-OVERRIDE header

This commit is contained in:
Johannes Schmitt 2011-08-18 12:18:12 +02:00
parent d1ad47c0eb
commit b6ee1a67a7

View File

@ -741,7 +741,7 @@ class Request
if (null === $this->method) {
$this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET'));
if ('POST' === $this->method) {
$this->method = strtoupper($this->server->get('X-HTTP-METHOD-OVERRIDE', $this->request->get('_method', 'POST')));
$this->method = strtoupper($this->headers->get('X-HTTP-METHOD-OVERRIDE', $this->request->get('_method', 'POST')));
}
}