Skip to content

Commit 74c3ce2

Browse files
CirnoTtechknowlogick
authored andcommitted
Add X-Total-Count on /repos/{owner]/{repo}/pulls API (go-gitea#11113)
Co-authored-by: techknowlogick <[email protected]>
1 parent 1a40a5a commit 74c3ce2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/api/v1/repo/pull.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func ListPullRequests(ctx *context.APIContext, form api.ListPullRequestsOptions)
113113
}
114114

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

0 commit comments

Comments
 (0)