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

Dropped support for func(http.Handler) http.Handler middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-04-19 16:00:23 -07:00
parent 54824fc22f
commit 3eeea660fa
10 changed files with 52 additions and 156 deletions

View File

@ -23,7 +23,7 @@ func (r *response) Header() http.Header {
func (r *response) WriteHeader(n int) {
if r.committed {
// TODO: Warning
log.Println(color.Yellow("echo: response already committed"))
log.Printf("echo: %s", color.Yellow("echo: response already committed"))
return
}
r.status = n