Narrow the use of Fields parameters:

Every interface or implementation which operates on a templated
type Fields is evaluated to determine if basic_fields<Allocator>
is more appropriate, and changed if so.
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:27 -07:00
1 parent 50902c3938
commit 087844c487
14 files changed
+172 -142

No files matched your search

+4 -4
View File
@@ -291,12 +291,12 @@ public:
@param req The upgrade request.
*/
template<class Body, class Fields>
template<class Body>
void
on_upgrade(
ssl_stream<socket_type>&& stream,
endpoint_type ep,
beast::http::request<Body, Fields>&& req)
beast::http::request<Body>&& req)
{
// Create the connection object and run it,
// transferring ownership of the ugprade request.
@@ -415,12 +415,12 @@ public:
@param req The upgrade request.
*/
template<class Body, class Fields>
template<class Body>
void
on_upgrade(
ssl_stream<socket_type>&& stream,
endpoint_type ep,
beast::http::request<Body, Fields>&& req)
beast::http::request<Body>&& req)
{
std::make_shared<async_wss_con>(
std::move(stream),