Explorar o código

Reset websocket subprotocol for every request

See #1091
r-j-s %!s(int64=2) %!d(string=hai) anos
pai
achega
478717fb8e
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      CREDITS.md
  2. 1 0
      src/civetweb.c

+ 1 - 0
CREDITS.md

@@ -162,6 +162,7 @@
 * Ponnuvel Palaniyappan
 * qinch
 * qinchao
+* r-j-s
 * Radoslaw Zarzynski
 * Red54
 * Retallack Mark mark.retallack

+ 1 - 0
src/civetweb.c

@@ -19281,6 +19281,7 @@ init_connection(struct mg_connection *conn)
 	conn->data_len = 0;
 	conn->handled_requests = 0;
 	conn->connection_type = CONNECTION_TYPE_INVALID;
+	conn->request_info.acceptedWebSocketSubprotocol = NULL;
 	mg_set_user_connection_data(conn, NULL);
 
 #if defined(USE_SERVER_STATS)