Jelajahi Sumber

Reset websocket subprotocol for every request

See #1091
r-j-s 2 tahun lalu
induk
melakukan
478717fb8e
2 mengubah file dengan 2 tambahan dan 0 penghapusan
  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)