fix(platform): preserve session failures and URL syntax
This commit is contained in:
@@ -151,6 +151,9 @@ function parseSwitchTarget(address: string, path: string): string {
|
||||
if (authority === undefined || authority.length === 0) {
|
||||
throw new TypeError(`${path}: expected a WebSocket address with a non-empty host`);
|
||||
}
|
||||
if (target.includes('#') || authority.includes('@')) {
|
||||
throw new TypeError(`${path}: expected a WebSocket address without fragment or userinfo`);
|
||||
}
|
||||
|
||||
let parsed: URL;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user