Use field in basic_fields and call sites

This commit is contained in:
Vinnie Falco
2017-06-07 18:18:54 -07:00
parent cfd6d146a8
commit b5f6cc1724
18 changed files with 220 additions and 69 deletions
+3 -3
View File
@@ -70,7 +70,7 @@ public:
req.version = 11;
req.method("POST");
req.target("/");
req.insert("User-Agent", "test");
req.insert(field::user_agent, "test");
req.body = "Hello, world!";
req.prepare();
@@ -103,7 +103,7 @@ public:
req.version = 11;
req.method("POST");
req.target("/");
req.insert("User-Agent", "test");
req.insert(field::user_agent, "test");
req.body = "Hello, world!";
req.prepare();
@@ -155,7 +155,7 @@ public:
req.version = 11;
req.method(verb::get);
req.target("/");
req.insert("User-Agent", "test");
req.insert(field::user_agent, "test");
error_code ec;
write_ostream(os, req, ec);
BEAST_EXPECTS(! ec, ec.message());