summaryrefslogtreecommitdiffhomepage
path: root/https.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-11 18:36:43 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-11 18:36:43 +0100
commitdeb28a9ce73ed7e38aaa53659027b61976fdca6b (patch)
tree7458809ca11ee8e59b32eb4aed4cd482894035dc /https.cpp
parent64493507905412e36848b9bd97c26f3d7a578ab5 (diff)
Websocket for both http and https
Diffstat (limited to 'https.cpp')
-rw-r--r--https.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/https.cpp b/https.cpp
index 5d19d5b..6b32195 100644
--- a/https.cpp
+++ b/https.cpp
@@ -79,7 +79,7 @@ class session : public std::enable_shared_from_this<session>
void handle_websocket()
{
beast::get_lowest_layer(stream_).expires_never();
- std::make_shared<websocket_session>(ioc_, std::move(stream_), response::get_websocket_address(req_, m_server))->do_accept_in(parser_->release());
+ make_websocket_session(ioc_, std::move(stream_), response::get_websocket_address(req_, m_server), parser_->release());
}
public: