diff --git a/client_http.hpp b/client_http.hpp index 68b19d5..b412296 100644 --- a/client_http.hpp +++ b/client_http.hpp @@ -30,13 +30,13 @@ namespace SimpleWeb { }; std::shared_ptr request(const std::string& request_type, const std::string& path="/", - const std::map& header={{}}) { + const std::map& header=std::map()) { std::stringstream empty_ss; return request(request_type, path, empty_ss, header); } std::shared_ptr request(const std::string& request_type, const std::string& path, std::ostream& content, - const std::map& header={{}}) { + const std::map& header=std::map()) { std::string corrected_path=path; if(corrected_path=="") corrected_path="/";