Github: fix pagination

This commit is contained in:
Aleksey Pivovarov
2013-07-29 10:57:30 +04:00
parent 76c8cfa608
commit 48465fd021
@@ -128,7 +128,7 @@ public class GithubApiUtil {
Header header = method.getResponseHeader("Link");
if (header != null) {
String value = header.getValue();
int end = value.indexOf(">; rel=\"nextPage\"");
int end = value.indexOf(">; rel=\"next\"");
int begin = value.lastIndexOf('<', end);
if (begin >= 0 && end >= 0) {
String newPath = GithubUrlUtil.removeProtocolPrefix(value.substring(begin + 1, end));