summaryrefslogtreecommitdiff
path: root/boost/beast/http/buffer_body.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/http/buffer_body.hpp')
-rw-r--r--boost/beast/http/buffer_body.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/boost/beast/http/buffer_body.hpp b/boost/beast/http/buffer_body.hpp
index 675ea9475a..3ffe0a002a 100644
--- a/boost/beast/http/buffer_body.hpp
+++ b/boost/beast/http/buffer_body.hpp
@@ -105,8 +105,8 @@ struct buffer_body
public:
template<bool isRequest, class Fields>
explicit
- reader(message<isRequest, buffer_body, Fields>& m)
- : body_(m.body())
+ reader(header<isRequest, Fields>&, value_type& b)
+ : body_(b)
{
}
@@ -167,9 +167,8 @@ struct buffer_body
template<bool isRequest, class Fields>
explicit
- writer(message<isRequest,
- buffer_body, Fields> const& msg)
- : body_(msg.body())
+ writer(header<isRequest, Fields> const&, value_type const& b)
+ : body_(b)
{
}