Skip to content

Commit bd81593

Browse files
author
lipengwei
committed
fix typo
(cherry picked from commit e8ea1bc)
1 parent 626a4f1 commit bd81593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware/timeout.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func (t echoHandlerFuncWrapper) ServeHTTP(rw http.ResponseWriter, r *http.Reques
126126
t.ctx.Error(err)
127127
// we pass error from handler to middlewares up in handler chain to act on it if needed. But this means that
128128
// global error handler is probably be called twice as `t.ctx.Error` already does that.
129-
// NB: later call of thr global error handler will not take any effect, as echo.Response will be marked as `committed`
129+
// NB: later call of the global error handler will not take any effect, as echo.Response will be marked as `committed`
130130
// when the first call take place.
131131
t.ctx.Response().Writer = originalWriter
132132
t.errChan <- err

0 commit comments

Comments
 (0)