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:
@ -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
|
||||
|
Reference in New Issue
Block a user