Skip to content

Commit

Permalink
Use correct page size for link header pagination (go-gitea#20546)
Browse files Browse the repository at this point in the history
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
  • Loading branch information
3 people authored and Sysoev, Vladimir committed Aug 10, 2022
1 parent e4770ed commit 654ad1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 654ad1a

Please sign in to comment.