From e50067d6ed5e067b8b00424ffb18ceef1ab288fd Mon Sep 17 00:00:00 2001 From: abitmore Date: Fri, 1 May 2020 17:57:21 -0400 Subject: [PATCH] Tweak code slightly --- src/network/http/websocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/http/websocket.cpp b/src/network/http/websocket.cpp index c194217..87c1e65 100644 --- a/src/network/http/websocket.cpp +++ b/src/network/http/websocket.cpp @@ -370,7 +370,7 @@ namespace fc { namespace http { std::string request_body = con->get_request_body(); wlog( "[IN] ${remote_endpoint} ${msg}", ("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}", ("remote_endpoint",remote_endpoint) ("msg",response) ); 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) { - headers.push_back( std::pair(key, value)); + headers.push_back( std::make_pair(key, value) ); } websocket_connection_ptr websocket_tls_client::connect( const std::string& uri )