Updates from BitShares FC #22
1 changed files with 2 additions and 1 deletions
|
|
@ -226,6 +226,7 @@ namespace fc { namespace http {
|
|||
|
||||
fc::async([current_con, request_body, con] {
|
||||
std::string response = current_con->on_http(request_body);
|
||||
idump((response));
|
||||
con->set_body( response );
|
||||
con->set_status( websocketpp::http::status_code::ok );
|
||||
con->send_http_response();
|
||||
|
|
@ -348,7 +349,7 @@ namespace fc { namespace http {
|
|||
auto con = _server.get_con_from_hdl(hdl);
|
||||
wdump(("server")(con->get_request_body()));
|
||||
auto response = current_con->on_http( con->get_request_body() );
|
||||
|
||||
idump((response));
|
||||
con->set_body( response );
|
||||
con->set_status( websocketpp::http::status_code::ok );
|
||||
} catch ( const fc::exception& e )
|
||||
|
|
|
|||
Loading…
Reference in a new issue