diff --git a/.gitignore b/.gitignore index d1502b087..cbf3ce61a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +/.idea/ vendor/ composer.lock diff --git a/lib/Gitlab/HttpClient/HttpClient.php b/lib/Gitlab/HttpClient/HttpClient.php index 6b786227b..8a3508372 100644 --- a/lib/Gitlab/HttpClient/HttpClient.php +++ b/lib/Gitlab/HttpClient/HttpClient.php @@ -214,7 +214,7 @@ public function getLastResponse() */ private function createRequest($httpMethod, $url, array $parameters, array $headers, array $files) { - if (empty($files)) { + if ($httpMethod === 'GET') { $request = new Request($httpMethod); $request->setContent(http_build_query($parameters)); } else {