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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
pull/11037/head^2
CirnoT 5 years ago committed by GitHub
parent 7eace60bb6
commit 38d5f88a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/api/v1/repo/pull.go

@ -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