Skip to content

Commit

Permalink
Fix bug with not setting Sec-WebSocket-Key header. (#964)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Vorobev <d.vorobev@soax.com>
  • Loading branch information
pydima and Dmitry Vorobev committed Oct 26, 2023
1 parent 166b235 commit 3522cb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cdp/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ func (ws *WebSocket) handshake(ctx context.Context, u *url.URL, header http.Head
req.Host = vs[0]
} else if k == "Sec-WebSocket-Key" && len(vs) > 0 {
secKey = vs[0]
req.Header[k] = vs
} else {
req.Header[k] = vs
}
Expand Down

0 comments on commit 3522cb9

Please sign in to comment.