aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_websocket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-25 23:10:19 +0000
committerGravatar Sadie Powell2022-12-25 23:10:19 +0000
commit7021dc0a123dd291ae4c3cfe67e41107c52d7792 (patch)
treecd0226ad2a287627ec9dc5280a5a4edbd2a7f9b9 /src/modules/m_websocket.cpp
parentUpdate the Windows dependencies. (diff)
Include the WebSocket fail reason in the body of the HTTP response.
Diffstat (limited to 'src/modules/m_websocket.cpp')
-rw-r--r--src/modules/m_websocket.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}