Browse Source

Updating RequestHandlerComponent to accept body of HTTP Delete requests

Steve Tauber 11 years ago
parent
commit
0af698c591
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Controller/Component/RequestHandlerComponent.php

+ 1 - 1
lib/Cake/Controller/Component/RequestHandlerComponent.php

@@ -506,7 +506,7 @@ class RequestHandlerComponent extends Component {
  *   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)) {