Drop "irc" WebSocket subprotocol
The subprotocol hasn't been standardized yet. It looks like the standard is moving in another direction.
This commit is contained in:
parent
0c0397407c
commit
5b7205c9c1
@ -198,7 +198,6 @@ func (s *Server) Serve(ln net.Listener) error {
|
|||||||
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||||
conn, err := websocket.Accept(w, req, &websocket.AcceptOptions{
|
conn, err := websocket.Accept(w, req, &websocket.AcceptOptions{
|
||||||
OriginPatterns: s.HTTPOrigins,
|
OriginPatterns: s.HTTPOrigins,
|
||||||
Subprotocols: []string{"irc"},
|
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.Logger.Printf("failed to serve HTTP connection: %v", err)
|
s.Logger.Printf("failed to serve HTTP connection: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user