mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 05:44:38 +02:00
Tidy up fast websocket server host names
This commit is contained in:
@@ -12,6 +12,7 @@ WebSocket:
|
|||||||
|
|
||||||
* Fix utf8 validation for autobahn
|
* Fix utf8 validation for autobahn
|
||||||
* Temporarily disable utf8 validation tests
|
* Temporarily disable utf8 validation tests
|
||||||
|
* Tidy up fast websocket server host names
|
||||||
|
|
||||||
API Changes:
|
API Changes:
|
||||||
|
|
||||||
|
@@ -90,7 +90,7 @@ do_sync_session(tcp::socket& socket)
|
|||||||
[](websocket::response_type& res)
|
[](websocket::response_type& res)
|
||||||
{
|
{
|
||||||
res.set(http::field::server,
|
res.set(http::field::server,
|
||||||
"Boost.Beast.sync/" + std::to_string(BOOST_BEAST_VERSION));
|
"Boost.Beast/" + std::to_string(BOOST_BEAST_VERSION) + "-Sync");
|
||||||
},
|
},
|
||||||
ec);
|
ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
@@ -162,7 +162,7 @@ public:
|
|||||||
[](websocket::response_type& res)
|
[](websocket::response_type& res)
|
||||||
{
|
{
|
||||||
res.set(http::field::server,
|
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(
|
boost::asio::bind_executor(
|
||||||
strand_,
|
strand_,
|
||||||
@@ -340,7 +340,7 @@ do_coro_session(tcp::socket& socket, boost::asio::yield_context yield)
|
|||||||
[&](websocket::response_type& res)
|
[&](websocket::response_type& res)
|
||||||
{
|
{
|
||||||
res.set(http::field::server,
|
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]);
|
yield[ec]);
|
||||||
if(ec)
|
if(ec)
|
||||||
|
Reference in New Issue
Block a user