diff options
author | 6543 | 2021-05-09 10:48:52 +0200 |
---|---|---|
committer | GitHub | 2021-05-09 09:48:52 +0100 |
commit | af11549fb2123ccc7dff2df501ce18635e8a93e4 (patch) | |
tree | 7e79cae9d3c4c301518197eca7f1f35126e7356a | |
parent | 76d6184cd0f09f51aa2534092b553e47ee703ff3 (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.go | 3 |
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 |