content parameter in Client::request is now of type std::iostream

This commit is contained in:
eidheim 2016-01-06 11:58:11 +01:00
commit 99204ec73d

View file

@ -33,7 +33,7 @@ namespace SimpleWeb {
return request(request_type, path, empty_ss, header); 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, std::shared_ptr<Response> request(const std::string& request_type, const std::string& path, std::iostream& content,
const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) { const std::map<std::string, std::string>& header=std::map<std::string, std::string>()) {
std::string corrected_path=path; std::string corrected_path=path;
if(corrected_path=="") if(corrected_path=="")