simply ignore the protocol
This commit is contained in:
parent
b57a6009a6
commit
57a26473aa
1 changed files with 0 additions and 8 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue