Tidy up fast websocket server host names

This commit is contained in:
Vinnie Falco
2017-10-26 05:52:11 -07:00
parent c029efaf7c
commit 2746184850
2 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@ WebSocket:
* Fix utf8 validation for autobahn
* Temporarily disable utf8 validation tests
* Tidy up fast websocket server host names
API Changes:

View File

@ -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)