From 8bd90d220c0aadbc21ba7ec97e548b291ffdc186 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 10 Oct 2014 18:42:24 +0200 Subject: [PATCH] Fixed default parameter of header for ClientBase::request --- client_http.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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="/";