From 7021dc0a123dd291ae4c3cfe67e41107c52d7792 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 25 Dec 2022 23:10:19 +0000 Subject: Include the WebSocket fail reason in the body of the HTTP response. --- src/modules/m_websocket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules/m_websocket.cpp') diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp index 47e12362a..a88af2df5 100644 --- a/src/modules/m_websocket.cpp +++ b/src/modules/m_websocket.cpp @@ -362,6 +362,7 @@ class WebSocketHook : public IOHookMiddle void FailHandshake(StreamSocket* sock, const char* httpreply, const char* sockerror) { GetSendQ().push_back(StreamSocket::SendQueue::Element(httpreply)); + GetSendQ().push_back(StreamSocket::SendQueue::Element(sockerror)); sock->DoWrite(); sock->SetError(sockerror); } -- cgit v1.3.1-10-gc9f91