1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

skip checkOrigin during websocket handshake

Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
This commit is contained in:
Tobias Gesellchen 2015-07-19 21:13:11 +02:00
parent 0e3674d7d0
commit 9bde19e72a

View file

@ -528,7 +528,8 @@ func (s *Server) wsContainersAttach(version version.Version, w http.ResponseWrit
logrus.Errorf("Error attaching websocket: %s", err)
}
})
h.ServeHTTP(w, r)
ws := websocket.Server{Handler: h, Handshake: nil}
ws.ServeHTTP(w, r)
return nil
}