Skip to content

Commit b06e01c

Browse files
committed
Set auth type for http auth by default, fixes #110
1 parent f88baac commit b06e01c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Github/Client.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ public function authenticate($tokenOrLogin, $password = null, $authMethod = null
166166
$password = null;
167167
}
168168

169+
if (null === $authMethod) {
170+
$authMethod = self::AUTH_HTTP_PASSWORD;
171+
}
172+
169173
$this->getHttpClient()->authenticate($tokenOrLogin, $password, $authMethod);
170174
}
171175

0 commit comments

Comments
 (0)