mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-11 02:17:42 +01:00
Correct spelling
Correct spelling
This commit is contained in:
parent
d21795cf53
commit
84d66d85fa
@ -195,9 +195,9 @@ func (b *BaseAPI) GetUserIDForRequest() (int, bool, bool) {
|
||||
// Redirect does redirection to resource URI with http header status code.
|
||||
func (b *BaseAPI) Redirect(statusCode int, resouceID string) {
|
||||
requestURI := b.Ctx.Request.RequestURI
|
||||
resoucreURI := requestURI + "/" + resouceID
|
||||
resourceURI := requestURI + "/" + resouceID
|
||||
|
||||
b.Ctx.Redirect(statusCode, resoucreURI)
|
||||
b.Ctx.Redirect(statusCode, resourceURI)
|
||||
}
|
||||
|
||||
// GetIDFromURL checks the ID in request URL
|
||||
@ -221,7 +221,7 @@ func (b *BaseAPI) SetPaginationHeader(total, page, pageSize int64) {
|
||||
|
||||
link := ""
|
||||
|
||||
// SetPaginationHeader setprevious link
|
||||
// SetPaginationHeader set previous link
|
||||
if page > 1 && (page-1)*pageSize <= total {
|
||||
u := *(b.Ctx.Request.URL)
|
||||
q := u.Query()
|
||||
@ -233,7 +233,7 @@ func (b *BaseAPI) SetPaginationHeader(total, page, pageSize int64) {
|
||||
link += fmt.Sprintf("<%s>; rel=\"prev\"", u.String())
|
||||
}
|
||||
|
||||
// SetPaginationHeader setnext link
|
||||
// SetPaginationHeader set next link
|
||||
if pageSize*page < total {
|
||||
u := *(b.Ctx.Request.URL)
|
||||
q := u.Query()
|
||||
|
Loading…
Reference in New Issue
Block a user