mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
backport #2336
This commit is contained in:
parent
5e678b925b
commit
625dd6b51e
@ -153,7 +153,7 @@ WebSocketImpl* WebSocket::accept(HTTPServerRequest& request, HTTPServerResponse&
|
||||
response.set("Upgrade", "websocket");
|
||||
response.set("Connection", "Upgrade");
|
||||
response.set("Sec-WebSocket-Accept", computeAccept(key));
|
||||
response.setContentLength(0);
|
||||
response.setContentLength(HTTPResponse::UNKNOWN_CONTENT_LENGTH);
|
||||
response.send().flush();
|
||||
|
||||
HTTPServerRequestImpl& requestImpl = static_cast<HTTPServerRequestImpl&>(request);
|
||||
|
Loading…
Reference in New Issue
Block a user