Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
(cherry picked from commit e8ea1bc)
  • Loading branch information
lipengwei committed Aug 13, 2021
1 parent 626a4f1 commit bd81593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/timeout.go
Expand Up @@ -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
Expand Down

0 comments on commit bd81593

Please sign in to comment.