asio: Use proper cookie syntax

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-06 02:41:07 +09:00
parent 421bf85808
commit a3f79232c6
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ int main(int argc, char *argv[]) {
std::cerr << "connected to " << (*endpoint_it).endpoint() << std::endl;
boost::system::error_code ec;
auto req = sess.submit(ec, "GET", "https://localhost:3000/",
"hello world", {{"cookie", {"foobar", true}}});
{{"cookie", {"foo=bar", true}}});
if (ec) {
std::cerr << "error: " << ec.message() << std::endl;
return;