diff --git a/src/Api/GitLab/Client.php b/src/Api/GitLab/Client.php index 67e72a0..74617bf 100644 --- a/src/Api/GitLab/Client.php +++ b/src/Api/GitLab/Client.php @@ -31,7 +31,7 @@ public function __construct() $token = self::resolveToken(); if ($token !== null) { - $headers['PRIVATE-TOKEN'] = $token; + $headers['Authorization'] = 'Bearer ' . $token; } $this->client = new \GuzzleHttp\Client([