summaryrefslogtreecommitdiff
path: root/modules/websocket/lws_server.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-30 20:23:16 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-30 20:23:16 +0200
commit6bc97cc7cc86bff790fd63c28a48d76f845b4844 (patch)
treeddd11380d3e6b2a2731445ac18ab04ed36062705 /modules/websocket/lws_server.cpp
parent9e43129906b87f10314406a93b9f8badbe5aae76 (diff)
Allow WebSocket connect with no sub-protocols.
Diffstat (limited to 'modules/websocket/lws_server.cpp')
-rw-r--r--modules/websocket/lws_server.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/websocket/lws_server.cpp b/modules/websocket/lws_server.cpp
index bb724bce9c..4a614f6933 100644
--- a/modules/websocket/lws_server.cpp
+++ b/modules/websocket/lws_server.cpp
@@ -41,9 +41,6 @@ Error LWSServer::listen(int p_port, PoolVector<String> p_protocols, bool gd_mp_a
struct lws_context_creation_info info;
memset(&info, 0, sizeof info);
- if (p_protocols.size() == 0) // default to binary protocol
- p_protocols.append(String("binary"));
-
// Prepare lws protocol structs
_lws_make_protocols(this, &LWSServer::_lws_gd_callback, p_protocols, &_lws_ref);