From 5310d2c9608a1af2d3030a9573e920906c76744e Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Wed, 21 Aug 2019 15:18:57 -0700 Subject: [PATCH] net/http: change TimeoutHandler's docs to match its new interfaces As of Go 1.13rc1, TimeoutHandler supports the Flusher and Pusher interfaces and this change corrects its documentation to say that. Fixes #33769 Updates #29193 --- src/net/http/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/http/server.go b/src/net/http/server.go index bcc283b66cea53..2eb16ff632c734 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -3177,8 +3177,8 @@ func (srv *Server) onceSetNextProtoDefaults() { // After such a timeout, writes by h to its ResponseWriter will return // ErrHandlerTimeout. // -// TimeoutHandler buffers all Handler writes to memory and does not -// support the Hijacker or Flusher interfaces. +// TimeoutHandler supports the Flusher and Pusher interfaces but does not +// support the Hijacker interface. func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler { return &timeoutHandler{ handler: h,