Skip to content

Commit

Permalink
fix: GH header is now lowercase, make regex case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
stroebjo committed Feb 22, 2021
1 parent 5e27b2c commit f46fd80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

// check if there are headers indication pagination
// => make multiple requests to fetch ALL the stars.
if (preg_match('/Link: .*?page=([0-9]+)>; rel="last"/', $header, $m)) {
if (preg_match('/Link: .*?page=([0-9]+)>; rel="last"/i', $header, $m)) {
$last_page = (int) $m[1];

for ($i = 2; $i <= $last_page; $i++) {
Expand Down

0 comments on commit f46fd80

Please sign in to comment.