mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-03 12:58:03 +01:00
#2993: The Sec-WebSocket-Key of WebSocket is always the same one
This commit is contained in:
parent
49cd3028f4
commit
f46cf3ae8a
@ -236,6 +236,7 @@ WebSocketImpl* WebSocket::completeHandshake(HTTPClientSession& cs, HTTPResponse&
|
||||
std::string WebSocket::createKey()
|
||||
{
|
||||
Poco::Random rnd;
|
||||
rnd.seed();
|
||||
std::ostringstream ostr;
|
||||
Poco::Base64Encoder base64(ostr);
|
||||
Poco::BinaryWriter writer(base64);
|
||||
|
Loading…
x
Reference in New Issue
Block a user