forked from lix-project/hydra
GithubPulls: Don't fail on missing Link
This commit is contained in:
parent
7c133a98f8
commit
3c71be5b5b
|
@ -30,7 +30,7 @@ sub _iterate {
|
||||||
$pulls->{$pull->{number}} = $pull;
|
$pulls->{$pull->{number}} = $pull;
|
||||||
}
|
}
|
||||||
# TODO Make Link header parsing more robust!!!
|
# TODO Make Link header parsing more robust!!!
|
||||||
my @links = split ',', $res->header("Link");
|
my @links = split ',', ($res->header("Link") // "");
|
||||||
my $next = "";
|
my $next = "";
|
||||||
foreach my $link (@links) {
|
foreach my $link (@links) {
|
||||||
my ($url, $rel) = split ";", $link;
|
my ($url, $rel) = split ";", $link;
|
||||||
|
|
Loading…
Reference in a new issue