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;