Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 30, 2018
1 parent 40bc5cc commit 91748dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ cinatra目前支持了multipart和octet-stream格式的上传。
//http upload(multipart)
server.set_http_handler<GET, POST>("/upload_multipart", [](request& req, response& res) {
assert(req.get_content_type() == content_type::multipart);
auto text = req.get_query_value("text");
std::cout<<text<<std::endl;
auto& files = req.get_upload_files();
for (auto& file : files) {
std::cout << file.get_file_path() << " " << file.get_file_size() << std::endl;
Expand Down

0 comments on commit 91748dd

Please sign in to comment.