diff --git a/CHANGELOG.md b/CHANGELOG.md index 466b189f..fc41312b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ * Fix async_connect documentation * Fix assert in websocket +* No automatic User-Agent in WebSocket + +Behaviour Changes: + +* No automatic User-Agent in WebSocket + Beast websocket streams will no longer automatically set the + User-Agent HTTP header during client handshake. This header is not required + by the WebSocket standard. If this field is required, user code may set it + in the decorator -------------------------------------------------------------------------------- diff --git a/include/boost/beast/websocket/impl/stream_impl.hpp b/include/boost/beast/websocket/impl/stream_impl.hpp index 0513dfeb..5022c688 100644 --- a/include/boost/beast/websocket/impl/stream_impl.hpp +++ b/include/boost/beast/websocket/impl/stream_impl.hpp @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include @@ -588,9 +587,6 @@ build_request( this->build_request_pmd(req); decorator_opt(req); decorator(req); - if(! req.count(http::field::user_agent)) - req.set(http::field::user_agent, - BOOST_BEAST_VERSION_STRING); return req; }