mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-25 16:13:42 +01: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);
|
||||
}
|
||||
|
||||
if (request.getURI() == "/ws")
|
||||
if(request.find("Upgrade") != request.end() && request["Upgrade"] == "websocket")
|
||||
return new WebSocketRequestHandler;
|
||||
else
|
||||
return new PageRequestHandler;
|
||||
|
Loading…
x
Reference in New Issue
Block a user