Skip to content

Commit 2754ecc

Browse files
noerwlunnywxiaoguang
authored
Use correct page size for link header pagination (#20546)
Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
1 parent 631539c commit 2754ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/issue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func SearchIssues(ctx *context.APIContext) {
282282
}
283283
}
284284

285-
ctx.SetLinkHeader(int(filteredCount), setting.UI.IssuePagingNum)
285+
ctx.SetLinkHeader(int(filteredCount), limit)
286286
ctx.SetTotalCountHeader(filteredCount)
287287
ctx.JSON(http.StatusOK, convert.ToAPIIssueList(issues))
288288
}

0 commit comments

Comments
 (0)