Created
September 20, 2012 09:46
-
-
Save jacegu/3754973 to your computer and use it in GitHub Desktop.
LINK header api.github.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⌘ ~ > curl "https://api.github.com/repos/rails/rails/issues?page=5&per_page=100" -I | |
HTTP/1.1 200 OK | |
Server: nginx | |
Date: Thu, 20 Sep 2012 09:42:30 GMT | |
Content-Type: application/json; charset=utf-8 | |
Connection: keep-alive | |
Status: 200 OK | |
X-Content-Type-Options: nosniff | |
X-GitHub-Media-Type: github.beta | |
Vary: Accept | |
X-RateLimit-Remaining: 4965 | |
ETag: "22f0b8ab097651f29ae27cb6bfdd83b6" | |
Link: <https://api.github.com/repos/rails/rails/issues?page=1&per_page=100>; rel="last", <https://api.github.com/repos/rails/rails/issues?page=1&per_page=100>; rel="first", <https://api.github.com/repos/rails/rails/issues?page=4&per_page=100>; rel="prev" | |
Cache-Control: public, max-age=60, s-maxage=60 | |
X-RateLimit-Limit: 5000 | |
Content-Length: 3596 | |
Last-Modified: Thu, 20 Sep 2012 08:50:54 GMT | |
---------------------------------------------------------------------------------------- | |
The last page according to the Link header is the first page. Is that intended? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment