We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae97b6 commit 0cc2fbaCopy full SHA for 0cc2fba
routers/api/v1/repo/pull.go
@@ -1217,7 +1217,7 @@ func GetPullRequestCommits(ctx *context.APIContext) {
1217
1218
ctx.Header().Set("X-Page", strconv.Itoa(listOptions.Page))
1219
ctx.Header().Set("X-PerPage", strconv.Itoa(listOptions.PageSize))
1220
- ctx.Header().Set("X-Total", strconv.FormatInt(int64(totalNumberOfCommits), 10))
+ ctx.Header().Set("X-Total-Count", fmt.Sprintf("%d", totalNumberOfCommits))
1221
ctx.Header().Set("X-PageCount", strconv.Itoa(totalNumberOfPages))
1222
ctx.Header().Set("X-HasMore", strconv.FormatBool(listOptions.Page < totalNumberOfPages))
1223
ctx.JSON(http.StatusOK, &apiCommits)
0 commit comments