summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/api/v1/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index ddad18ef62..08e3e03741 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -282,7 +282,7 @@ func SearchIssues(ctx *context.APIContext) {
}
}
- ctx.SetLinkHeader(int(filteredCount), setting.UI.IssuePagingNum)
+ ctx.SetLinkHeader(int(filteredCount), limit)
ctx.SetTotalCountHeader(filteredCount)
ctx.JSON(http.StatusOK, convert.ToAPIIssueList(issues))
}