mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Support boost 1.68
This commit is contained in:
@@ -97,9 +97,13 @@ class ServerStatus_test :
|
||||
req.insert("User-Agent", "test");
|
||||
req.method(boost::beast::http::verb::get);
|
||||
req.insert("Upgrade", "websocket");
|
||||
boost::beast::websocket::detail::maskgen maskgen;
|
||||
boost::beast::websocket::detail::sec_ws_key_type key;
|
||||
#if BOOST_VERSION >= 106800
|
||||
boost::beast::websocket::detail::make_sec_ws_key(key);
|
||||
#else
|
||||
boost::beast::websocket::detail::maskgen maskgen;
|
||||
boost::beast::websocket::detail::make_sec_ws_key(key, maskgen);
|
||||
#endif
|
||||
req.insert("Sec-WebSocket-Key", key);
|
||||
req.insert("Sec-WebSocket-Version", "13");
|
||||
req.insert(boost::beast::http::field::connection, "upgrade");
|
||||
|
||||
Reference in New Issue
Block a user