瀏覽代碼

Fix headers array, fixes #2821

Jordi Boggiano 11 年之前
父節點
當前提交
b09fb521d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,