mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 08:02:06 +02:00
fixed websocket server to work with websocket.org
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user