fixed websocket server to work with websocket.org

This commit is contained in:
Paul Rosset 2014-08-29 10:28:05 +02:00
parent bfc963beda
commit 069a980940

View File

@ -163,7 +163,7 @@ public:
app.logger().information(it->first + ": " + it->second);
}
if (request.getURI() == "/ws")
if(request.find("Upgrade") != request.end() && request["Upgrade"] == "websocket")
return new WebSocketRequestHandler;
else
return new PageRequestHandler;