mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 16:20:15 +02:00
Checking the protocol version for websocket is not required on the client side.
This commit is contained in:
parent
742ec5680f
commit
c9b988e146
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user