1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 02:20:54 +00:00
This commit is contained in:
TankTheFrank 2017-12-14 17:14:53 +02:00 committed by Dorin
parent bf5c5626ab
commit 2670a86005

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)
}
}