Browse Source

Add X-Total-Count on /repos/{owner]/{repo}/pulls API (#11113)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tags/v1.13.0-dev
CirnoT 4 years ago
parent
commit
38d5f88a81
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      routers/api/v1/repo/pull.go

+ 1
- 0
routers/api/v1/repo/pull.go View File

@@ -113,6 +113,7 @@ func ListPullRequests(ctx *context.APIContext, form api.ListPullRequestsOptions)
}

ctx.SetLinkHeader(int(maxResults), listOptions.PageSize)
ctx.Header().Set("X-Total-Count", fmt.Sprintf("%d", maxResults))
ctx.JSON(http.StatusOK, &apiPrs)
}


Loading…
Cancel
Save