Fixed failing test

This commit is contained in:
José Lorenzo Rodríguez 2016-01-19 08:37:36 -04:30
parent bd53ef01a6
commit 93ba85b8b8

View file

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