1
0
Fork 0

Fix update oxy

This commit is contained in:
Michael 2018-10-10 18:20:05 +02:00 committed by Traefiker Bot
parent 609b2630d7
commit b722748ec3
5 changed files with 7 additions and 2 deletions

View file

@ -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