Skip to content
Permalink
Browse files

Updating RequestHandlerComponent to accept body of HTTP Delete requests

  • Loading branch information...
stevetauber committed Jul 29, 2014
1 parent ec28108 commit 0af698c591df873abc84a25391b8bb893f94bfb6
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Component/RequestHandlerComponent.php
@@ -506,7 +506,7 @@ public function accepts($type = null) {
* in the request content type will be returned.
*/
public function requestedWith($type = null) {
if (!$this->request->is('post') && !$this->request->is('put')) {
if (!$this->request->is('post') && !$this->request->is('put') && !$this->request->is('delete')) {
return null;
}
if (is_array($type)) {

0 comments on commit 0af698c

Please sign in to comment.
You can’t perform that action at this time.