Skip to content

Commit f7509dc

Browse files
committed
Fix nextLink parser
1 parent 9fd40d7 commit f7509dc

File tree

1 file changed

+1
-1
lines changed
  • examples/real-world/middleware

1 file changed

+1
-1
lines changed

examples/real-world/middleware/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function getNextPageUrl(response) {
1414
return null
1515
}
1616

17-
return nextLink.split('')[0].slice(1, -1)
17+
return nextLink.split(';')[0].slice(1, -1)
1818
}
1919

2020
const API_ROOT = 'https://api.github.com/'

0 commit comments

Comments
 (0)