Fixed build errors

This commit is contained in:
yhirose committed 2019-12-03 10:30:07 -05:00
1 parent 4c93b973ff
commit b9539b8921
2 files changed
+3 -6

No files matched your search

+2 -2
View File
@@ -37,10 +37,10 @@ int main(void) {
svr.Post("/post", [](const Request & req, Response &res) {
auto file = req.get_file_value("file");
cout << "file: " << file.offset << ":" << file.length << ":" << file.filename << endl;
cout << "file length: " << file.content.length() << ":" << file.filename << endl;
ofstream ofs(file.filename, ios::binary);
ofs << req.body.substr(file.offset, file.length);
ofs << file.content;
res.set_content("done", "text/plain");
});