chore: fix typo (#4920)

This commit is contained in:
Kevin Wan
2025-06-05 22:51:22 +08:00
committed by GitHub
parent da5d39e6ca
commit 8a1b2d5aed

View File

@@ -107,7 +107,7 @@ func (h *timeoutHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
tw.mu.Lock()
defer tw.mu.Unlock()
// there isn't any user-defined middleware before TimeoutHandler,
// so we can guarantee that cancelation in biz related code won't come here.
// so we can guarantee that cancellation in biz related code won't come here.
httpx.ErrorCtx(r.Context(), w, ctx.Err(), func(w http.ResponseWriter, err error) {
if errors.Is(err, context.Canceled) {
w.WriteHeader(statusClientClosedRequest)