Skip to content

Commit

Permalink
Check for returned link header in GithubDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Sep 2, 2021
1 parent 5b16d61 commit 99c6b45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Composer/Repository/Vcs/GitHubDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,10 @@ protected function setupGitDriver($url)
protected function getNextPage(Response $response)
{
$header = $response->getHeader('link');

if (!$header) {
return;
}

$links = explode(',', $header);
foreach ($links as $link) {
Expand Down

0 comments on commit 99c6b45

Please sign in to comment.