Prevent basic_fields operator[] assignment

fix #258
This commit is contained in:
Vinnie Falco
2017-05-07 13:39:41 -07:00
parent c2b32dc740
commit 5596e97656
5 changed files with 41 additions and 40 deletions
+2 -2
View File
@@ -634,7 +634,7 @@ public:
m.method = "GET";
m.version = 11;
m.url = "/";
m.fields["Content-Length"] = "5";
m.fields.insert("Content-Length", 5);
m.body = "*****";
async_write(os, m, handler{});
BEAST_EXPECT(handler::count() > 0);
@@ -656,7 +656,7 @@ public:
m.method = "GET";
m.version = 11;
m.url = "/";
m.fields["Content-Length"] = "5";
m.fields.insert("Content-Length", 5);
m.body = "*****";
async_write(is, m, handler{});
BEAST_EXPECT(handler::count() > 0);