]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: fix comment TimeoutHandler no longer supports Flusher
authorpokutuna <popopopopokutuna@gmail.com>
Fri, 25 Oct 2019 18:58:48 +0000 (18:58 +0000)
committerBryan C. Mills <bcmills@google.com>
Fri, 25 Oct 2019 20:46:57 +0000 (20:46 +0000)
Fixes #35161
Updates #34439

Change-Id: I978534cbb8b9fb32c115dba0066cf099c61d8ee9
GitHub-Last-Rev: d60581635e8cefb7cfc4b571057542395034c575
GitHub-Pull-Request: golang/go#35162
Reviewed-on: https://go-review.googlesource.com/c/go/+/203478
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/net/http/server.go

index ff93e59bc06dd62e6e8e804037afb561ef9d2ae7..b2c071fc2108cc4a5ba752eb3a6ac6fae30004ec 100644 (file)
@@ -3182,8 +3182,8 @@ func (srv *Server) onceSetNextProtoDefaults() {
 // After such a timeout, writes by h to its ResponseWriter will return
 // ErrHandlerTimeout.
 //
-// TimeoutHandler supports the Flusher and Pusher interfaces but does not
-// support the Hijacker interface.
+// TimeoutHandler supports the Pusher interface but does not support
+// the Hijacker or Flusher interfaces.
 func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler {
        return &timeoutHandler{
                handler: h,