Explorar o código

Checking the protocol version for websocket is not required on the client side.

Yuri %!s(int64=4) %!d(string=hai) anos
pai
achega
c9b988e146
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      packages/fcl-web/src/websocket/fpwebsocketclient.pp

+ 1 - 2
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;