Skip to content

Commit

Permalink
Merge pull request #487 from Nyholm/issue-486
Browse files Browse the repository at this point in the history
Remove Accept form default plugin
  • Loading branch information
cursedcoder authored Dec 13, 2016
2 parents 0bce4dc + b37b3e8 commit fefc8cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/Github/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public function __construct(Builder $httpClientBuilder = null, $apiVersion = nul
$builder->addPlugin(new Plugin\AddHostPlugin(UriFactoryDiscovery::find()->createUri('https://api.github.com')));
$builder->addPlugin(new Plugin\HeaderDefaultsPlugin(array(
'User-Agent' => 'php-github-api (http://github.com/KnpLabs/php-github-api)',
'Accept' => sprintf('application/vnd.github.%s+json', $this->getApiVersion()),
)));

$this->apiVersion = $apiVersion ?: 'v3';
Expand Down

0 comments on commit fefc8cc

Please sign in to comment.