Browse Source

Fix auth in github token checks

Jordi Boggiano 5 years ago
parent
commit
384e978d8b
1 changed files with 1 additions and 1 deletions
  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) {