Skip to content

Commit 46e0d72

Browse files
pokutunaBryan C. Mills
authored and
Bryan C. Mills
committed
net/http: fix comment TimeoutHandler no longer supports Flusher
Fixes #35161 Updates #34439 Change-Id: I978534cbb8b9fb32c115dba0066cf099c61d8ee9 GitHub-Last-Rev: d605816 GitHub-Pull-Request: #35162 Reviewed-on: https://go-review.googlesource.com/c/go/+/203478 Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent dcad830 commit 46e0d72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/http/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,8 +3182,8 @@ func (srv *Server) onceSetNextProtoDefaults() {
31823182
// After such a timeout, writes by h to its ResponseWriter will return
31833183
// ErrHandlerTimeout.
31843184
//
3185-
// TimeoutHandler supports the Flusher and Pusher interfaces but does not
3186-
// support the Hijacker interface.
3185+
// TimeoutHandler supports the Pusher interface but does not support
3186+
// the Hijacker or Flusher interfaces.
31873187
func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler {
31883188
return &timeoutHandler{
31893189
handler: h,

0 commit comments

Comments
 (0)