diff --git a/src/Http/WebSocketClient.h b/src/Http/WebSocketClient.h index 5031ff0f..4da0197e 100644 --- a/src/Http/WebSocketClient.h +++ b/src/Http/WebSocketClient.h @@ -73,7 +73,7 @@ public: typedef shared_ptr Ptr; HttpWsClient(ClientTypeImp &delegate) : _delegate(delegate){ - _Sec_WebSocket_Key = encodeBase64(SHA1::encode_bin(makeRandStr(16, false))); + _Sec_WebSocket_Key = encodeBase64(makeRandStr(16, false)); setPoller(delegate.getPoller()); } ~HttpWsClient(){}