Fix update oxy
This commit is contained in:
parent
609b2630d7
commit
b722748ec3
5 changed files with 7 additions and 2 deletions
3
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
3
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
|
@ -491,6 +491,9 @@ func (f *httpForwarder) copyWebSocketRequest(req *http.Request) (outReq *http.Re
|
|||
outReq.RequestURI = "" // Outgoing request should not have RequestURI
|
||||
|
||||
outReq.URL.Host = req.URL.Host
|
||||
if !f.passHost {
|
||||
outReq.Host = req.URL.Host
|
||||
}
|
||||
|
||||
outReq.Header = make(http.Header)
|
||||
// gorilla websocket use this header to set the request.Host tested in checkSameOrigin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue