mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
Added MG_WS_HANDSHAKE
This commit is contained in:
1 parent
d8b4db37a0
commit
05d7b7c8bc
2 files changed
+4
-2
No files matched your search
+3
-1
@@ -2631,7 +2631,9 @@ static void send_websocket_handshake_if_requested(struct mg_connection *conn) {
|
||||
*key = mg_get_header(conn, "Sec-WebSocket-Key");
|
||||
if (ver != NULL && key != NULL) {
|
||||
conn->is_websocket = 1;
|
||||
send_websocket_handshake(conn, key);
|
||||
if (call_user(MG_CONN_2_CONN(conn), MG_WS_HANDSHAKE) == MG_FALSE) {
|
||||
send_websocket_handshake(conn, key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user