1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 12:10:18 +00:00

Refactor a bit to consolidate packages

This commit is contained in:
Eyal Post
2017-05-17 20:38:59 +03:00
parent d54cd4fa5f
commit 828cbbdf5d
7 changed files with 94 additions and 101 deletions

View File

@ -28,7 +28,6 @@ import (
beecontext "github.com/astaxie/beego/context"
"github.com/astaxie/beego/context/param"
"github.com/astaxie/beego/context/response"
"github.com/astaxie/beego/logs"
"github.com/astaxie/beego/toolbox"
"github.com/astaxie/beego/utils"
@ -905,7 +904,7 @@ func (p *ControllerRegister) handleParamResponse(context *beecontext.Context, ex
result := results[i]
if result.Kind() != reflect.Interface || !result.IsNil() {
resultValue := result.Interface()
response.RenderMethodResult(resultValue, context)
context.RenderMethodResult(resultValue)
}
}
if !context.ResponseWriter.Started && context.Output.Status == 0 {