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

This commit is contained in:
Yuri 2021-12-28 22:16:37 +00:00 committed by Michael Van Canneyt
parent 742ec5680f
commit c9b988e146

View File

@ -393,8 +393,7 @@ begin
Move(Hash,B[0],Length(B)); Move(Hash,B[0],Length(B));
k:=EncodeBytesBase64(B); k:=EncodeBytesBase64(B);
Result:=SameText(K,FHandshakeResponse.Accept) Result:=SameText(K,FHandshakeResponse.Accept)
and SameText(FHandshakeResponse.Upgrade,'websocket') and SameText(FHandshakeResponse.Upgrade,'websocket');
and SameText(FHandshakeResponse.Version,FHandShake.Version);
end; end;
Function TCustomWebsocketClient.ReadHandShakeResponse : Boolean; Function TCustomWebsocketClient.ReadHandShakeResponse : Boolean;