diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fad5a8f..8fa237d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ WebSocket: * Fix utf8 validation for autobahn * Temporarily disable utf8 validation tests +* Tidy up fast websocket server host names API Changes: diff --git a/example/websocket/server/fast/websocket_server_fast.cpp b/example/websocket/server/fast/websocket_server_fast.cpp index f0654c6c..004aac33 100644 --- a/example/websocket/server/fast/websocket_server_fast.cpp +++ b/example/websocket/server/fast/websocket_server_fast.cpp @@ -90,7 +90,7 @@ do_sync_session(tcp::socket& socket) [](websocket::response_type& res) { res.set(http::field::server, - "Boost.Beast.sync/" + std::to_string(BOOST_BEAST_VERSION)); + "Boost.Beast/" + std::to_string(BOOST_BEAST_VERSION) + "-Sync"); }, ec); if(ec) @@ -162,7 +162,7 @@ public: [](websocket::response_type& res) { res.set(http::field::server, - "Boost.Beast.async/" + std::to_string(BOOST_BEAST_VERSION)); + "Boost.Beast/" + std::to_string(BOOST_BEAST_VERSION) + "-Async"); }, boost::asio::bind_executor( strand_, @@ -340,7 +340,7 @@ do_coro_session(tcp::socket& socket, boost::asio::yield_context yield) [&](websocket::response_type& res) { res.set(http::field::server, - "Boost.Beast.coro/" + std::to_string(BOOST_BEAST_VERSION)); + "Boost.Beast/" + std::to_string(BOOST_BEAST_VERSION) + "-Coro"); }, yield[ec]); if(ec)