From af11549fb2123ccc7dff2df501ce18635e8a93e4 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 9 May 2021 10:48:52 +0200 Subject: [PATCH] Ensure that ctx.Written is checked after issues(...) calls (#15797) (#15798) Fix issue noted in #15783 Signed-off-by: Andrew Thornton Co-authored-by: zeripath --- routers/repo/issue.go | 3 +++ 1 file changed, 3 insertions(+) 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