Permalink
Browse files

DELETE verb should also set contents in the request body

  • Loading branch information...
acasademont committed Mar 12, 2012
1 parent ca5ceed commit 217cb6a0b72fe2033d7c563e0c8bd48896871fd2
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Buzz/Client/Curl.php
View
@@ -40,6 +40,7 @@ static protected function setCurlOptsFromRequest($curl, Message\Request $request
case Message\Request::METHOD_POST:
case Message\Request::METHOD_PUT:
+ case Message\Request::METHOD_DELETE:
$options[CURLOPT_POSTFIELDS] = $fields = self::getPostFields($request);
// remove the content-type header

0 comments on commit 217cb6a

Please sign in to comment.