Unverified Commit c9b6e4f8 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2981 from TankTheFrank/fix_template_render_with_automatic_parameter_routing

fixes template rendering with automatic mapped parameters (see #2979)
parents abd02c7d 2670a860
...@@ -943,7 +943,7 @@ func (p *ControllerRegister) handleParamResponse(context *beecontext.Context, ex ...@@ -943,7 +943,7 @@ func (p *ControllerRegister) handleParamResponse(context *beecontext.Context, ex
context.RenderMethodResult(resultValue) 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) context.Output.SetStatus(200)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment