Преглед изворни кода

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