diff --git a/Net/src/WebSocket.cpp b/Net/src/WebSocket.cpp index 5950a6a9d..9418dd8d4 100644 --- a/Net/src/WebSocket.cpp +++ b/Net/src/WebSocket.cpp @@ -204,7 +204,7 @@ WebSocketImpl* WebSocket::completeHandshake(HTTPClientSession& cs, HTTPResponse& throw WebSocketException("No Upgrade: websocket header in handshake response", WS_ERR_NO_HANDSHAKE); 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); + throw WebSocketException("Invalid or missing Sec-WebSocket-Accept header in handshake response", WS_ERR_HANDSHAKE_ACCEPT); return new WebSocketImpl(static_cast(cs.detachSocket().impl()), true); }