1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 18:30:50 +00:00

move to context

This commit is contained in:
Eyal Post 2017-05-18 10:38:12 +03:00
parent 2513bcf584
commit 11b4bf8aaa

View File

@ -1,11 +1,9 @@
package httpResponse
package context
import (
"strconv"
"net/http"
beecontext "github.com/astaxie/beego/context"
)
const (
@ -24,6 +22,6 @@ func (s StatusCode) Error() string {
}
// Render sets the http status code
func (s StatusCode) Render(ctx *beecontext.Context) {
func (s StatusCode) Render(ctx *Context) {
ctx.Output.SetStatus(int(s))
}