Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Page 0 is the same as page 1. And the way that the page is incremented just before the check to see if you are at the final page causes the loop to exit early. By incrementing at the beginning of the loop you get all pages of data and don't miss the last page.
- Loading branch information