浏览代码

Fix auth in github token checks

Jordi Boggiano 5 年之前
父节点
当前提交
384e978d8b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Packagist/WebBundle/Service/GitHubUserMigrationWorker.php

+ 1 - 1
src/Packagist/WebBundle/Service/GitHubUserMigrationWorker.php

@@ -214,7 +214,7 @@ class GitHubUserMigrationWorker
     private function request(string $token, string $method, string $url, array $json = null): Response
     {
         $opts = [
-            'headers' => ['Accept' => 'application/vnd.github.v3+json', 'Authorization: token '.$token],
+            'headers' => ['Accept' => 'application/vnd.github.v3+json', 'Authorization' => 'token '.$token],
         ];
 
         if ($json) {