diff --git a/client_http.hpp b/client_http.hpp index 973db4a..7b27c82 100644 --- a/client_http.hpp +++ b/client_http.hpp @@ -223,14 +223,14 @@ namespace SimpleWeb { } } - std::shared_ptr create_request_header(const std::string& request_type, const std::string& path, const std::map& header) const { + std::shared_ptr create_request_header(const std::string& request_type, const std::string& path, const std::map& header) const { auto corrected_path=path; if(corrected_path=="") corrected_path="/"; - if(!config.proxy_server.empty() && std::is_same::value) + if(!config.proxy_server.empty() && std::is_same::value) corrected_path="http://"+host+':'+std::to_string(port)+corrected_path; - auto write_buffer=std::make_shared(); + auto write_buffer=std::make_shared(); std::ostream write_stream(write_buffer.get()); write_stream << request_type << " " << corrected_path << " HTTP/1.1\r\n"; write_stream << "Host: " << host << "\r\n"; @@ -239,7 +239,7 @@ namespace SimpleWeb { return write_buffer; } - void request_write(const std::shared_ptr &write_buffer) { + void request_write(const std::shared_ptr &write_buffer) { connect(); auto timer=get_timeout_timer();