Skip to content

Commit 2e4782a

Browse files
committed
Merge pull request #21 from bestform/fix-http-auth
AuthListener now uses the correct key in the header for HTTP Auth
2 parents fa9176a + e2ba0b6 commit 2e4782a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Gitlab/HttpClient/Listener/AuthListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function preSend(RequestInterface $request)
5555

5656
switch ($this->method) {
5757
case Client::AUTH_HTTP_TOKEN:
58-
$request->addHeader('private_token: '.$this->token);
58+
$request->addHeader('PRIVATE-TOKEN: '.$this->token);
5959
if (!is_null($this->sudo)) {
6060
$request->addHeader('SUDO: '.$this->sudo);
6161
}

0 commit comments

Comments
 (0)