This commit is contained in:
TankTheFrank 2017-12-14 17:14:53 +02:00 committed by Dorin
parent bf5c5626ab
commit 2670a86005
1 changed files with 1 additions and 1 deletions

View File

@ -957,7 +957,7 @@ func (p *ControllerRegister) handleParamResponse(context *beecontext.Context, ex
context.RenderMethodResult(resultValue)
}
}
if !context.ResponseWriter.Started && context.Output.Status == 0 {
if !context.ResponseWriter.Started && len(results) > 0 && context.Output.Status == 0 {
context.Output.SetStatus(200)
}
}