Fix request going out of scope.

This commit is contained in:
clemahieu 2017-02-10 22:02:39 -06:00
commit 17849e5a57

View file

@ -25,7 +25,6 @@ public:
{
std::stringstream ostream;
boost::property_tree::write_json (ostream, request);
beast::http::request<beast::http::string_body> req;
req.method = "POST";
req.url = "/";
req.version = 11;
@ -73,6 +72,7 @@ public:
boost::asio::ip::tcp::socket sock;
boost::property_tree::ptree json;
beast::streambuf sb;
beast::http::request<beast::http::string_body> req;
beast::http::response<beast::http::string_body> resp;
int status;
};