aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author65432021-05-09 10:48:52 +0200
committerGitHub2021-05-09 09:48:52 +0100
commitaf11549fb2123ccc7dff2df501ce18635e8a93e4 (patch)
tree7e79cae9d3c4c301518197eca7f1f35126e7356a
parent76d6184cd0f09f51aa2534092b553e47ee703ff3 (diff)
Ensure that ctx.Written is checked after issues(...) calls (#15797) (#15798)
Fix issue noted in #15783 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r--routers/repo/issue.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 37a526670..fb7dac297 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -374,6 +374,9 @@ func Issues(ctx *context.Context) {
}
issues(ctx, ctx.QueryInt64("milestone"), ctx.QueryInt64("project"), util.OptionalBoolOf(isPullList))
+ if ctx.Written() {
+ return
+ }
var err error
// Get milestones