Skip to content

Commit 2267255

Browse files
committed
Add optional body param to delete request (close arangodb#233)
1 parent 93dd351 commit 2267255

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ArangoDBClient/Connection.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,13 @@ public function patch($url, $data, array $customHeaders = [])
289289
*
290290
* @param string $url - DELETE URL
291291
* @param array $customHeaders
292+
* @param string $data - delete body
292293
*
293294
* @return HttpResponse
294295
*/
295-
public function delete($url, array $customHeaders = [])
296+
public function delete($url, array $customHeaders = [], $data = '')
296297
{
297-
$response = $this->executeRequest(HttpHelper::METHOD_DELETE, $url, '', $customHeaders);
298+
$response = $this->executeRequest(HttpHelper::METHOD_DELETE, $url, $data, $customHeaders);
298299

299300
return $this->parseResponse($response);
300301
}

0 commit comments

Comments
 (0)