Parcourir la source

Fix auth in github token checks

Jordi Boggiano il y a 5 ans
Parent
commit
384e978d8b

+ 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) {