Skip to content

Commit

Permalink
DELETE verb should also set contents in the request body
Browse files Browse the repository at this point in the history
  • Loading branch information
acasademont committed Mar 12, 2012
1 parent ca5ceed commit 217cb6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Buzz/Client/Curl.php
Expand Up @@ -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
Expand Down

0 comments on commit 217cb6a

Please sign in to comment.