Protect basic_fields special members (API Change)

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:18 -07:00
parent 3eb1d1025b
commit ace99bd6c0
3 changed files with 22 additions and 12 deletions
+2 -2
View File
@@ -114,14 +114,14 @@ public:
}
{
fields h;
header<true, fields> h;
h.insert("User-Agent", "test");
message<true, one_arg_body, fields> m{Arg1{}, h};
BEAST_EXPECT(h["User-Agent"] == "test");
BEAST_EXPECT(m["User-Agent"] == "test");
}
{
fields h;
header<true, fields> h;
h.insert("User-Agent", "test");
message<true, one_arg_body, fields> m{Arg1{}, std::move(h)};
BEAST_EXPECT(! h.exists("User-Agent"));