From bd81593e706749c489c86e0eb29832c02d96e7bc Mon Sep 17 00:00:00 2001 From: lipengwei Date: Mon, 2 Aug 2021 15:35:03 +0800 Subject: [PATCH] fix typo (cherry picked from commit e8ea1bcabb6cdb50b06e1ec0e7c3cce44287d8b7) --- middleware/timeout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/timeout.go b/middleware/timeout.go index 507557a24..94049a0f0 100644 --- a/middleware/timeout.go +++ b/middleware/timeout.go @@ -126,7 +126,7 @@ func (t echoHandlerFuncWrapper) ServeHTTP(rw http.ResponseWriter, r *http.Reques t.ctx.Error(err) // we pass error from handler to middlewares up in handler chain to act on it if needed. But this means that // global error handler is probably be called twice as `t.ctx.Error` already does that. - // NB: later call of thr global error handler will not take any effect, as echo.Response will be marked as `committed` + // NB: later call of the global error handler will not take any effect, as echo.Response will be marked as `committed` // when the first call take place. t.ctx.Response().Writer = originalWriter t.errChan <- err