From c9b988e146512169f283172b60cd97b278fcfcfb Mon Sep 17 00:00:00 2001 From: Yuri Date: Tue, 28 Dec 2021 22:16:37 +0000 Subject: [PATCH] Checking the protocol version for websocket is not required on the client side. --- packages/fcl-web/src/websocket/fpwebsocketclient.pp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/fcl-web/src/websocket/fpwebsocketclient.pp b/packages/fcl-web/src/websocket/fpwebsocketclient.pp index 441d2cdbbe..8c2e529dcb 100644 --- a/packages/fcl-web/src/websocket/fpwebsocketclient.pp +++ b/packages/fcl-web/src/websocket/fpwebsocketclient.pp @@ -393,8 +393,7 @@ begin Move(Hash,B[0],Length(B)); k:=EncodeBytesBase64(B); Result:=SameText(K,FHandshakeResponse.Accept) - and SameText(FHandshakeResponse.Upgrade,'websocket') - and SameText(FHandshakeResponse.Version,FHandShake.Version); + and SameText(FHandshakeResponse.Upgrade,'websocket'); end; Function TCustomWebsocketClient.ReadHandShakeResponse : Boolean;