1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-15 01:34:53 +02:00

Changes for sub router #10

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-04-02 05:02:52 -07:00
parent 0337e9d13f
commit d8aae6ea43
9 changed files with 138 additions and 74 deletions

View File

@ -82,7 +82,8 @@ func (c *Context) Redirect(n int, url string) {
http.Redirect(c.Response, c.Request, url, n)
}
func (c *Context) reset(rw http.ResponseWriter, r *http.Request) {
func (c *Context) reset(rw http.ResponseWriter, r *http.Request, e *Echo) {
c.Response.reset(rw)
c.Request = r
c.echo = e
}