This commit is contained in:
David Négrier 2020-09-30 10:17:01 +02:00
parent 5de2f61231
commit c7f5770968

View File

@ -233,7 +233,7 @@ export class IoSocketController {
req.getHeader('sec-websocket-extensions'),
context);
} catch (e: unknown) {
} catch (e) {
if (e instanceof Error) {
console.warn(e.message);
res.writeStatus("401 Unauthorized").end(e.message);