Fixed default parameter of header for ClientBase::request
This commit is contained in:
parent
084f45cc33
commit
8bd90d220c
1 changed files with 2 additions and 2 deletions
|
|
@ -30,13 +30,13 @@ namespace SimpleWeb {
|
|||
};
|
||||
|
||||
std::shared_ptr<Response> request(const std::string& request_type, const std::string& path="/",
|
||||
const std::map<std::string, std::string>& header={{}}) {
|
||||
const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) {
|
||||
std::stringstream empty_ss;
|
||||
return request(request_type, path, empty_ss, header);
|
||||
}
|
||||
|
||||
std::shared_ptr<Response> request(const std::string& request_type, const std::string& path, std::ostream& content,
|
||||
const std::map<std::string, std::string>& header={{}}) {
|
||||
const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) {
|
||||
std::string corrected_path=path;
|
||||
if(corrected_path=="")
|
||||
corrected_path="/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue