mirror of
https://github.com/labstack/echo.git
synced 2025-03-11 14:49:56 +02:00
Use response adapter in engine/standard
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
6fd725c953
commit
b8f8d756c7
@ -165,7 +165,7 @@ func WrapMiddleware(m func(http.Handler) http.Handler) echo.MiddlewareFunc {
|
|||||||
res := c.Response().(*Response)
|
res := c.Response().(*Response)
|
||||||
m(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
m(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
err = next(c)
|
err = next(c)
|
||||||
})).ServeHTTP(res.ResponseWriter, req.Request)
|
})).ServeHTTP(res.adapter, req.Request)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user