diff options
-rw-r--r-- | src/BWebSocket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BWebSocket.cc b/src/BWebSocket.cc index 013f1e0..3dded95 100644 --- a/src/BWebSocket.cc +++ b/src/BWebSocket.cc @@ -253,7 +253,7 @@ bool Balau::WebSocketServerBase::Do(HttpServer * server, Http::Request & req, Ht if (!req.upgrade) goto error; - if (req.headers["Upgrade"] != "websocket") goto error; + if (req.headers["Upgrade"].lower() != "websocket") goto error; if (req.headers["Sec-WebSocket-Key"] == "") goto error; |