diff options
Diffstat (limited to 'boost/beast/websocket/impl/accept.hpp')
-rw-r--r-- | boost/beast/websocket/impl/accept.hpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/boost/beast/websocket/impl/accept.hpp b/boost/beast/websocket/impl/accept.hpp index 4b989b56c7..1e33d8b40a 100644 --- a/boost/beast/websocket/impl/accept.hpp +++ b/boost/beast/websocket/impl/accept.hpp @@ -21,7 +21,6 @@ #include <boost/beast/core/buffer_traits.hpp> #include <boost/beast/core/stream_traits.hpp> #include <boost/beast/core/detail/buffer.hpp> -#include <boost/beast/core/detail/type_traits.hpp> #include <boost/beast/version.hpp> #include <boost/asio/coroutine.hpp> #include <boost/asio/post.hpp> @@ -80,13 +79,8 @@ build_response( decorator_opt(res); decorator(res); if(! res.count(http::field::server)) - { - // VFALCO this is weird.. - BOOST_STATIC_ASSERT(sizeof( - BOOST_BEAST_VERSION_STRING) < 20); - static_string<20> s(BOOST_BEAST_VERSION_STRING); - res.set(http::field::server, s); - } + res.set(http::field::server, + string_view(BOOST_BEAST_VERSION_STRING)); }; auto err = [&](error e) @@ -172,7 +166,7 @@ template<class Handler> class stream<NextLayer, deflateSupported>::response_op : public beast::stable_async_base< Handler, beast::executor_type<stream>> - , public net::coroutine + , public asio::coroutine { boost::weak_ptr<impl_type> wp_; error_code result_; // must come before res_ @@ -247,7 +241,7 @@ template<class Handler, class Decorator> class stream<NextLayer, deflateSupported>::accept_op : public beast::stable_async_base< Handler, beast::executor_type<stream>> - , public net::coroutine + , public asio::coroutine { boost::weak_ptr<impl_type> wp_; http::request_parser<http::empty_body>& p_; |