We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9717e8e + 2f362c1 commit dc1836bCopy full SHA for dc1836b
lib/Github/Client.php
@@ -146,6 +146,7 @@ public function __construct(HttpClient $httpClient = null)
146
$this->responseHistory = new History();
147
$this->addPlugin(new GithubExceptionThrower());
148
$this->addPlugin(new Plugin\HistoryPlugin($this->responseHistory));
149
+ $this->addPlugin(new Plugin\RedirectPlugin());
150
$this->addPlugin(new Plugin\AddHostPlugin(UriFactoryDiscovery::find()->createUri('https://api.github.com/')));
151
$this->addPlugin(new Plugin\HeaderDefaultsPlugin(array(
152
'User-Agent' => 'php-github-api (http://github.com/KnpLabs/php-github-api)',
0 commit comments