From a69fb523a738315cc089eeae98f265d595bfe7dc Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 9 May 2021 03:33:49 +0100 Subject: [PATCH] Ensure that ctx.Written is checked after issues(...) calls (#15797) Fix issue noted in #15783 Signed-off-by: Andrew Thornton --- routers/repo/issue.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 12726cd22..fd2877e70 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