Skip to content

Commit 1fec6fd

Browse files
committed
websocket: fix non-tls ws parser after handshake
1 parent e11aabe commit 1fec6fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nbhttp/websocket/dialer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h
253253
}
254254

255255
wsConn = NewClientConn(options, conn, resp.Header.Get(secWebsocketProtoHeaderField), remoteCompressionEnabled, false)
256+
parser.ParserCloser = wsConn
256257
wsConn.Engine = parser.Engine
257258
wsConn.Execute = parser.Execute
258259
nbc.SetSession(wsConn)

0 commit comments

Comments
 (0)