summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-25 20:05:27 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-25 20:05:27 +0100
commitd1a8ea04cba8184c4b9f38009378de42173462f2 (patch)
treee3a9f50ad19e9c3b1efa7f89061b5902f3fb626d /src
parent69c0222b9eb95f8d3e0b9d55e4f685994940b8f9 (diff)
Most headers are case-insensitive...
Diffstat (limited to 'src')
-rw-r--r--src/BWebSocket.cc2
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;