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

Merge pull request #14978 from gesellix/websocket-disable-check-origin

skip checkOrigin during websocket handshake
This commit is contained in:
Brian Goff 2015-08-25 12:56:30 -04:00
commit e134ccada7

View file

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