diff --git a/src/Jira/Api/Client/CurlClient.php b/src/Jira/Api/Client/CurlClient.php index 4668ed9..6f0feb3 100644 --- a/src/Jira/Api/Client/CurlClient.php +++ b/src/Jira/Api/Client/CurlClient.php @@ -94,8 +94,8 @@ public function sendRequest( } else { 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)); }