Check for returned link header in GithubDriver
parent
5b16d61762
commit
99c6b450e6
|
@ -576,6 +576,10 @@ class GitHubDriver extends VcsDriver
|
|||
{
|
||||
$header = $response->getHeader('link');
|
||||
|
||||
if (!$header) {
|
||||
return;
|
||||
}
|
||||
|
||||
$links = explode(',', $header);
|
||||
foreach ($links as $link) {
|
||||
if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
|
||||
|
|
Loading…
Reference in New Issue