From f9bc980b0b51844367305a347b6dbcb327c65677 Mon Sep 17 00:00:00 2001 From: oOOps Date: Wed, 13 Jun 2018 21:55:09 +0800 Subject: api: correct pagination in repository search api (#5293) --- pkg/context/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') 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) -- cgit v1.2.3