diff --git a/src/Jira/Api/Client/CurlClient.php b/src/Jira/Api/Client/CurlClient.php index 4254297..ce7ee83 100644 --- a/src/Jira/Api/Client/CurlClient.php +++ b/src/Jira/Api/Client/CurlClient.php @@ -117,8 +117,8 @@ public function sendRequest( curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data)); } } - elseif ( $method == 'PUT' ) { - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PUT'); + elseif ( $method == 'PUT' || $method == 'DELETE' ) { + curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data)); }