fix: Use encrypted field to check for TLS.

This commit is contained in:
Ruben Verborgh
2022-06-23 13:24:50 +01:00
committed by Joachim Van Herwegen
parent bc088f494d
commit 82f90709a6
2 changed files with 3 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ describe('An UnsecureWebSocketsProtocol', (): void => {
'sec-websocket-protocol': 'solid-0.1, other/1.0.0',
},
socket: {
secure: true,
encrypted: true,
},
} as any as HttpRequest;
await protocol.handle({ webSocket, upgradeRequest } as any);