Skip to content

Commit 4322ad4

Browse files
committed
fix delete calls with parameters
1 parent 16d6b9d commit 4322ad4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Gitlab/Api/AbstractApi.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,9 @@ protected function put($path, array $parameters = array(), $requestHeaders = arr
150150
*/
151151
protected function delete($path, array $parameters = array(), $requestHeaders = array())
152152
{
153-
$path = $this->preparePath($path);
154-
155-
$body = empty($parameters) ? null : $this->streamFactory->createStream(http_build_query($parameters));
153+
$path = $this->preparePath($path, $parameters);
156154

157-
$response = $this->client->getHttpClient()->delete($path, $requestHeaders, $body);
155+
$response = $this->client->getHttpClient()->delete($path, $requestHeaders);
158156

159157
return ResponseMediator::getContent($response);
160158
}

0 commit comments

Comments
 (0)