Remove two error codes

This commit is contained in:
Chunting Gu
2019-04-16 16:59:58 +08:00
parent e63dc748ab
commit 5553a70603
4 changed files with 7 additions and 16 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
#include "webcc/common.h"
#include <codecvt>
#include "boost/algorithm/string.hpp"
#include "boost/filesystem/fstream.hpp"
@@ -215,8 +217,8 @@ FormPart::FormPart(const std::string& name, const Path& path,
}
// Determine file name from file path.
// TODO: Encoding
file_name_ = path.filename().string();
// TODO: encoding
file_name_ = path.filename().string(std::codecvt_utf8<wchar_t>());
// Determine content type from file extension.
if (mime_type_.empty()) {