This commit is contained in:
aozhiwei 2019-01-02 16:43:20 +08:00
parent 29e74d78f8
commit a87779569d

View File

@ -136,7 +136,7 @@ namespace a8
std::string response = "HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
"Upgrade: websocket\r\n"
"Connection: Upgrade\r\n"
+ key + hash_data + "\r\n" +
+ std::string(key) + hash_data + "\r\n" +
"\r\n";
SendBuff(response.data(), response.size());
handshook_ = true;