mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Github: fix pagination
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user