GithubPulls: Don't fail on missing Link

This commit is contained in:
Ulrik Strid 2022-05-18 08:14:00 +02:00
parent 7c133a98f8
commit 3c71be5b5b

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;