Skip to content

Commit e3976a2

Browse files
authored
Merge pull request #115 from aik099/curl-client-delete-request-support
Support for DELETE requests in the Curl client implementation
2 parents 9be9b50 + 01997dc commit e3976a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jira/Api/Client/CurlClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public function sendRequest(
117117
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
118118
}
119119
}
120-
elseif ( $method == 'PUT' ) {
121-
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PUT');
120+
elseif ( $method == 'PUT' || $method == 'DELETE' ) {
121+
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
122122
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
123123
}
124124

0 commit comments

Comments
 (0)