mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
fix: websocket subprotocols (#7472)
This commit is contained in:
parent
109258db41
commit
11524580d6
@ -220,7 +220,7 @@ const openWebSocketConnection = async (
|
|||||||
'on': true,
|
'on': true,
|
||||||
'global': settings.followRedirects,
|
'global': settings.followRedirects,
|
||||||
}[request.settingFollowRedirects] ?? true;
|
}[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, {
|
const ws = new WebSocket(url, protocols, {
|
||||||
headers: lowerCasedEnabledHeaders,
|
headers: lowerCasedEnabledHeaders,
|
||||||
ca: caCertificate,
|
ca: caCertificate,
|
||||||
|
Loading…
Reference in New Issue
Block a user