Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 19, 2016
1 parent bd53ef0 commit 93ba85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeRequest.php
Expand Up @@ -191,7 +191,7 @@ protected function _processPost() {
$override = true;
}

if ($override) {
if ($override && !in_array($_ENV['REQUEST_METHOD'], ['POST', 'PUT', 'PATCH', 'DELETE'])) {
$this->data = array();
}

Expand Down

0 comments on commit 93ba85b

Please sign in to comment.