]> source.dussan.org Git - gitea.git/commitdiff
Ensure that ctx.Written is checked after issues(...) calls (#15797) (#15798)
author6543 <6543@obermui.de>
Sun, 9 May 2021 08:48:52 +0000 (10:48 +0200)
committerGitHub <noreply@github.com>
Sun, 9 May 2021 08:48:52 +0000 (09:48 +0100)
Fix issue noted in #15783

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
routers/repo/issue.go

index 37a5266708b8837a7214c4f41e3dc6a8c971e84c..fb7dac297d7f00db86621e86a76b9ade664fb71d 100644 (file)
@@ -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