Skip to content

Commit 8c0efdc

Browse files
zeripathAbdulrhmnGhanem
authored andcommitted
Ensure that ctx.Written is checked after issues(...) calls (go-gitea#15797)
Fix issue noted in go-gitea#15783 Signed-off-by: Andrew Thornton <art27@cantab.net>
1 parent 728995b commit 8c0efdc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

routers/repo/issue.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ func Issues(ctx *context.Context) {
372372
}
373373

374374
issues(ctx, ctx.QueryInt64("milestone"), ctx.QueryInt64("project"), util.OptionalBoolOf(isPullList))
375+
if ctx.Written() {
376+
return
377+
}
375378

376379
var err error
377380
// Get milestones

0 commit comments

Comments
 (0)