Skip to content

Commit f22173f

Browse files
committed
Merge pull request #36 from mikespook/master
Update Echo implementation
2 parents d367f54 + e2c02b9 commit f22173f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,12 @@ func echoHandler(c *echo.Context) *echo.HTTPError {
331331
}
332332

333333
func echoHandlerWrite(c *echo.Context) *echo.HTTPError {
334-
io.WriteString(c.Response, c.Param("name"))
334+
io.WriteString(c.Response(), c.Param("name"))
335335
return nil
336336
}
337337

338338
func echoHandlerTest(c *echo.Context) *echo.HTTPError {
339-
io.WriteString(c.Response, c.Request.RequestURI)
339+
io.WriteString(c.Response(), c.Request().RequestURI)
340340
return nil
341341
}
342342

@@ -383,7 +383,7 @@ func loadEchoSingle(method, path string, h interface{}) http.Handler {
383383
default:
384384
panic("Unknow HTTP method: " + method)
385385
}
386-
return e.Router
386+
return e.Router()
387387
}
388388

389389
// Gin

0 commit comments

Comments
 (0)