forked from boostorg/beast
Derive header from Fields (API Change)
This commit is contained in:
@@ -40,9 +40,9 @@ int main(int, char const*[])
|
||||
req.method(verb::get);
|
||||
req.target("/");
|
||||
req.version = 11;
|
||||
req.fields.insert("Host", host + std::string(":") +
|
||||
req.insert("Host", host + std::string(":") +
|
||||
boost::lexical_cast<std::string>(ep.port()));
|
||||
req.fields.insert("User-Agent", "beast/http");
|
||||
req.insert("User-Agent", "beast/http");
|
||||
prepare(req);
|
||||
write(sock, req);
|
||||
response<string_body> res;
|
||||
|
||||
Reference in New Issue
Block a user