Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit 8bd90d2

Browse files
committed
Fixed default parameter of header for ClientBase::request
1 parent 084f45c commit 8bd90d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client_http.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ namespace SimpleWeb {
3030
};
3131

3232
std::shared_ptr<Response> request(const std::string& request_type, const std::string& path="/",
33-
const std::map<std::string, std::string>& header={{}}) {
33+
const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) {
3434
std::stringstream empty_ss;
3535
return request(request_type, path, empty_ss, header);
3636
}
3737

3838
std::shared_ptr<Response> request(const std::string& request_type, const std::string& path, std::ostream& content,
39-
const std::map<std::string, std::string>& header={{}}) {
39+
const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) {
4040
std::string corrected_path=path;
4141
if(corrected_path=="")
4242
corrected_path="/";

0 commit comments

Comments
 (0)