Skip to content

Commit

Permalink
fix: websocket subprotocols
Browse files Browse the repository at this point in the history
  • Loading branch information
arbezerra authored and jackkav committed Jun 3, 2024
1 parent 109258d commit 836f5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/insomnia/src/main/network/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const openWebSocketConnection = async (
'on': true,
'global': settings.followRedirects,
}[request.settingFollowRedirects] ?? true;
const protocols = lowerCasedEnabledHeaders['sec-websocket-protocol'];
const protocols = lowerCasedEnabledHeaders['sec-websocket-protocol']?.split(',').map(p => p.trim());
const ws = new WebSocket(url, protocols, {
headers: lowerCasedEnabledHeaders,
ca: caCertificate,
Expand Down

0 comments on commit 836f5da

Please sign in to comment.