message::body is a member function (API Change):

fix #778

* The body data member is replaced with accessor
  member functions.

Actions Required:

* Call member function message::body instead of accessing
  the data member at call sites.
This commit is contained in:
Vinnie Falco committed 2017-09-12 17:12:12 -07:00
1 parent 0d4d239d05
commit 54fe7cacf7
36 files changed
+248 -182

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ public:
multi_buffer b;
read(ts, b, p);
auto const& m = p.get();
BEAST_EXPECT(to_string(m.body.data()) == "xyz");
BEAST_EXPECT(to_string(m.body().data()) == "xyz");
BEAST_EXPECT(to_string(m) == s);
}
};