Fix request going out of scope.
This commit is contained in:
parent
cfab552a9c
commit
17849e5a57
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue