mirror of
https://github.com/labstack/echo.git
synced 2025-06-04 23:37:45 +02:00
fix
This commit is contained in:
parent
5cb7cefcc5
commit
0d62f0065f
@ -119,7 +119,7 @@ func (config LoggerConfig) ToMiddleware() (echo.MiddlewareFunc, error) {
|
|||||||
|
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
err := next(c)
|
err := next(c)
|
||||||
if err = next(c); err != nil {
|
if err != nil {
|
||||||
// When global error handler writes the error to the client the Response gets "committed". This state can be
|
// When global error handler writes the error to the client the Response gets "committed". This state can be
|
||||||
// checked with `c.Response().Committed` field.
|
// checked with `c.Response().Committed` field.
|
||||||
c.Error(err)
|
c.Error(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user