]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: fix missing previous headers in response when switching protocol...
authorJulien Salleyron <julien.salleyron@gmail.com>
Wed, 2 Jan 2019 16:29:49 +0000 (16:29 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 2 Jan 2019 17:00:30 +0000 (17:00 +0000)
commit2175177497b74a1be52cc98a892e4197973c4ea6
treee0c2546d80650ee63081dab03f3d450629de6642
parent8962b71c4947cdc915ae6dd837e644e03d2e7435
net/http/httputil: fix missing previous headers in response when switching protocol in ReverseProxy

When using switching protocol, previous headers set before the reverse proxy are lost.

Fixes #29407

Change-Id: Ia2b9784022d9bccef8625519ccbabbe8a276dfc0
GitHub-Last-Rev: 79bb493dcbb9b76d9d2ff9cd0854b29d634f8b73
GitHub-Pull-Request: golang/go#29408
Reviewed-on: https://go-review.googlesource.com/c/155741
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/httputil/reverseproxy.go
src/net/http/httputil/reverseproxy_test.go