Skip to content

Commit

Permalink
Merge pull request #2 from veloriba/v3.5.0-stable
Browse files Browse the repository at this point in the history
support body params for delete operation
  • Loading branch information
antflk committed Feb 21, 2018
2 parents 3c16567 + 7f92230 commit 15fdd27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RestClient/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ private function executeDelete($curlHandle, Request $request)
{
curl_setopt($curlHandle, CURLOPT_URL, $request->getServiceUrl() . $request->getOperation());
curl_setopt($curlHandle, CURLOPT_CUSTOMREQUEST, 'DELETE');
if ($request->getParameters()) {
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $this->buildPostBody($request->getParameters()));
}

return $this->doExecute($curlHandle, $request);
}
Expand Down

0 comments on commit 15fdd27

Please sign in to comment.