]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: use response controller in reverse proxy
authorShang Ding <shangjian.ding@gmail.com>
Thu, 16 Feb 2023 03:04:33 +0000 (21:04 -0600)
committerGopher Robot <gobot@golang.org>
Fri, 17 Mar 2023 15:23:38 +0000 (15:23 +0000)
commit2449bbb5e614954ce9e99c8a481ea2ee73d72d61
treed8970ce184b0c0470614345225b0b98f830ba801
parent602e6aa97965c0c14d469c46370b76c0f276edbb
net/http/httputil: use response controller in reverse proxy

Previously, the reverse proxy is unable to detect
the support for hijack or flush if those things
are residing in the response writer in a wrapped
manner.

The reverse proxy now makes use of the new http
response controller as the means to discover
the underlying flusher and hijacker associated
with the response writer, allowing wrapped flusher
and hijacker become discoverable.

Change-Id: I53acbb12315c3897be068e8c00598ef42fc74649
Reviewed-on: https://go-review.googlesource.com/c/go/+/468755
Run-TryBot: Damien Neil <dneil@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/net/http/httputil/reverseproxy.go
src/net/http/httputil/reverseproxy_test.go