mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 14:54:32 +02:00
@@ -1,5 +1,14 @@
|
|||||||
* Fix async_connect documentation
|
* Fix async_connect documentation
|
||||||
* Fix assert in websocket
|
* 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
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -30,7 +30,6 @@
|
|||||||
#include <boost/beast/core/static_buffer.hpp>
|
#include <boost/beast/core/static_buffer.hpp>
|
||||||
#include <boost/beast/core/stream_traits.hpp>
|
#include <boost/beast/core/stream_traits.hpp>
|
||||||
#include <boost/beast/core/detail/clamp.hpp>
|
#include <boost/beast/core/detail/clamp.hpp>
|
||||||
#include <boost/beast/version.hpp>
|
|
||||||
#include <boost/asio/steady_timer.hpp>
|
#include <boost/asio/steady_timer.hpp>
|
||||||
#include <boost/core/empty_value.hpp>
|
#include <boost/core/empty_value.hpp>
|
||||||
#include <boost/enable_shared_from_this.hpp>
|
#include <boost/enable_shared_from_this.hpp>
|
||||||
@@ -588,9 +587,6 @@ build_request(
|
|||||||
this->build_request_pmd(req);
|
this->build_request_pmd(req);
|
||||||
decorator_opt(req);
|
decorator_opt(req);
|
||||||
decorator(req);
|
decorator(req);
|
||||||
if(! req.count(http::field::user_agent))
|
|
||||||
req.set(http::field::user_agent,
|
|
||||||
BOOST_BEAST_VERSION_STRING);
|
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user