mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
client WebSocket fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WebSocket.cpp
|
||||
//
|
||||
// $Id: //poco/1.4/Net/src/WebSocket.cpp#7 $
|
||||
// $Id: //poco/1.4/Net/src/WebSocket.cpp#8 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: WebSocket
|
||||
@@ -224,7 +224,7 @@ WebSocketImpl* WebSocket::completeHandshake(HTTPClientSession& cs, HTTPResponse&
|
||||
std::string accept = response.get("Sec-WebSocket-Accept", "");
|
||||
if (accept != computeAccept(key))
|
||||
throw WebSocketException("Invalid or missing Sec-WebSocket-Accept header in handshake response", WS_ERR_NO_HANDSHAKE);
|
||||
return new WebSocketImpl(static_cast<StreamSocketImpl*>(cs.socket().impl()), true);
|
||||
return new WebSocketImpl(static_cast<StreamSocketImpl*>(cs.detachSocket().impl()), true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user