From 48465fd0214174c2f32d26f98e05aca9dec79e26 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 29 Jul 2013 10:54:08 +0400 Subject: [PATCH] Github: fix pagination --- .../src/org/jetbrains/plugins/github/api/GithubApiUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java b/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java index 3037911c9d65..d2f49e41fab4 100644 --- a/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java +++ b/plugins/github/src/org/jetbrains/plugins/github/api/GithubApiUtil.java @@ -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));