Skip to content

Commit d4459e3

Browse files
committed
use QueryStringBuilder for POST requests
1 parent 95e059d commit d4459e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Gitlab/Api/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function post($path, array $parameters = array(), $requestHeaders = ar
8989

9090
$body = null;
9191
if (empty($files) && !empty($parameters)) {
92-
$body = $this->streamFactory->createStream(http_build_query($parameters));
92+
$body = $this->streamFactory->createStream(QueryStringBuilder::build($parameters));
9393
$requestHeaders['Content-Type'] = 'application/x-www-form-urlencoded';
9494
} elseif (!empty($files)) {
9595
$builder = new MultipartStreamBuilder($this->streamFactory);

0 commit comments

Comments
 (0)