mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-31 16:04:27 +02:00
fixed websocket server to work with websocket.org
This commit is contained in:
parent
bfc963beda
commit
069a980940
@ -163,7 +163,7 @@ public:
|
|||||||
app.logger().information(it->first + ": " + it->second);
|
app.logger().information(it->first + ": " + it->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.getURI() == "/ws")
|
if(request.find("Upgrade") != request.end() && request["Upgrade"] == "websocket")
|
||||||
return new WebSocketRequestHandler;
|
return new WebSocketRequestHandler;
|
||||||
else
|
else
|
||||||
return new PageRequestHandler;
|
return new PageRequestHandler;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user