Explorar o código

Fix headers array, fixes #2821

Jordi Boggiano %!s(int64=11) %!d(string=hai) anos
pai
achega
b09fb521d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Util/GitHub.php

+ 1 - 1
src/Composer/Util/GitHub.php

@@ -129,7 +129,7 @@ class GitHub
 
                 // no existing token, create one
                 if (empty($contents['token'])) {
-                    $headers[] = array('Content-Type: application/json');
+                    $headers[] = 'Content-Type: application/json';
 
                     $contents = JsonFile::parseJson($this->remoteFilesystem->getContents($originUrl, 'https://'. $apiUrl . '/authorizations', false, array(
                         'retry-auth-failure' => false,