Commit 11b4bf8a authored by Eyal Post's avatar Eyal Post

move to context

parent 2513bcf5
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))
}
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