diff options
author | oOOps <springqiang@gmail.com> | 2018-06-13 21:55:09 +0800 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2018-06-13 21:55:09 +0800 |
commit | f9bc980b0b51844367305a347b6dbcb327c65677 (patch) | |
tree | 1f8174c09cd1cfdd15221d5768401718fd3b4db3 /pkg | |
parent | 806754b512f52937fa6bdd6df54e1be15408c22f (diff) |
api: correct pagination in repository search api (#5293)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/context/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/context/api.go b/pkg/context/api.go index 0aa025dc..fab66024 100644 --- a/pkg/context/api.go +++ b/pkg/context/api.go @@ -43,7 +43,7 @@ func (c *APIContext) Error(status int, title string, obj interface{}) { }) } -// SetLinkHeader sets pagination link header by given totol number and page size. +// SetLinkHeader sets pagination link header by given total number and page size. func (c *APIContext) SetLinkHeader(total, pageSize int) { page := paginater.New(total, pageSize, c.QueryInt("page"), 0) links := make([]string, 0, 4) |