summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-05-09 03:33:49 +0100
committerGitHub <noreply@github.com>2021-05-09 10:33:49 +0800
commita69fb523a738315cc089eeae98f265d595bfe7dc (patch)
tree91ebbbc63650bb745921d53f2bff67fc4a8c4b6d /routers/repo
parent864e656d81b817cd49c6245e1b7f60eece99af30 (diff)
downloadgitea-a69fb523a738315cc089eeae98f265d595bfe7dc.tar.gz
gitea-a69fb523a738315cc089eeae98f265d595bfe7dc.zip
Ensure that ctx.Written is checked after issues(...) calls (#15797)
Fix issue noted in #15783 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/repo')
-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 12726cd22c..fd2877e706 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -372,6 +372,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