Merge pull request #322 from joomdonation/patch-1

Fix Fetch PRs
This commit is contained in:
Roland Dalmulder 2021-05-02 11:29:15 +02:00 committed by GitHub
commit 8a1eb29ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -535,9 +535,9 @@ class PullsModel extends AbstractModel
// Default this to being a single page of results
$lastPage = 1;
if (isset($pullsResponse->headers['Link']))
if (isset($pullsResponse->headers['link']))
{
$linkHeader = $pullsResponse->headers['Link'];
$linkHeader = $pullsResponse->headers['link'];
// The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
if (is_array($linkHeader))