simply ignore the protocol

This commit is contained in:
David Reed 2022-11-18 21:19:35 -05:00
parent b57a6009a6
commit 57a26473aa
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F

View file

@ -1017,14 +1017,6 @@ function __uvHook(window, config = {}, bare = '/bare/') {
requestHeaders['Origin'] = __uv.meta.url.origin;
requestHeaders['User-Agent'] = navigator.userAgent;
for (let proto of [].concat(protocol)) {
if (!validProtocol(proto)) {
throw new DOMException(
`Failed to construct 'WebSocket': The subprotocol '${proto}' is invalid.`
);
}
}
if (__uv.cookieStr !== '')
requestHeaders['Cookie'] = __uv.cookieStr.toString();