using the right superglobal

This commit is contained in:
José Lorenzo Rodríguez 2016-01-19 10:43:12 -04:30
parent 93ba85b8b8
commit dc83669e9b

View file

@ -191,7 +191,7 @@ class CakeRequest implements ArrayAccess {
$override = true;
}
if ($override && !in_array($_ENV['REQUEST_METHOD'], ['POST', 'PUT', 'PATCH', 'DELETE'])) {
if ($override && !in_array($_SERVER['REQUEST_METHOD'], ['POST', 'PUT', 'PATCH', 'DELETE'])) {
$this->data = array();
}