Merge pull request #1210 from ulrikstrid/ulrikstrid-fix-github-pr

GithubPulls: Don't fail on missing `Link`
This commit is contained in:
Janne Heß 2022-05-18 17:48:50 +02:00 committed by GitHub
commit 27023b514a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ sub _iterate {
$pulls->{$pull->{number}} = $pull;
}
# TODO Make Link header parsing more robust!!!
my @links = split ',', $res->header("Link");
my @links = split ',', ($res->header("Link") // "");
my $next = "";
foreach my $link (@links) {
my ($url, $rel) = split ";", $link;