FC Updates from BitShares and myself #21
1 changed files with 2 additions and 2 deletions
|
|
@ -370,7 +370,7 @@ namespace fc { namespace http {
|
||||||
std::string request_body = con->get_request_body();
|
std::string request_body = con->get_request_body();
|
||||||
wlog( "[IN] ${remote_endpoint} ${msg}",
|
wlog( "[IN] ${remote_endpoint} ${msg}",
|
||||||
("remote_endpoint",remote_endpoint) ("msg",request_body) );
|
("remote_endpoint",remote_endpoint) ("msg",request_body) );
|
||||||
auto response = current_con->on_http( con->get_request_body() );
|
auto response = current_con->on_http( request_body );
|
||||||
ilog( "[OUT] ${remote_endpoint} ${msg}",
|
ilog( "[OUT] ${remote_endpoint} ${msg}",
|
||||||
("remote_endpoint",remote_endpoint) ("msg",response) );
|
("remote_endpoint",remote_endpoint) ("msg",response) );
|
||||||
con->set_body( std::move( response.body_as_string ) );
|
con->set_body( std::move( response.body_as_string ) );
|
||||||
|
|
@ -707,7 +707,7 @@ namespace fc { namespace http {
|
||||||
|
|
||||||
void websocket_client::append_header(const std::string& key, const std::string& value)
|
void websocket_client::append_header(const std::string& key, const std::string& value)
|
||||||
{
|
{
|
||||||
headers.push_back( std::pair<std::string,std::string>(key, value));
|
headers.push_back( std::make_pair(key, value) );
|
||||||
}
|
}
|
||||||
|
|
||||||
websocket_connection_ptr websocket_tls_client::connect( const std::string& uri )
|
websocket_connection_ptr websocket_tls_client::connect( const std::string& uri )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue