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:
Simon Ser 2021-03-18 12:02:36 +01:00
parent 0c0397407c
commit 5b7205c9c1
1 changed files with 0 additions and 1 deletions

View File

@ -198,7 +198,6 @@ func (s *Server) Serve(ln net.Listener) error {
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
conn, err := websocket.Accept(w, req, &websocket.AcceptOptions{
OriginPatterns: s.HTTPOrigins,
Subprotocols: []string{"irc"},
})
if err != nil {
s.Logger.Printf("failed to serve HTTP connection: %v", err)