|
a/src/internfile/mh_execm.cpp |
|
b/src/internfile/mh_execm.cpp |
|
... |
|
... |
225 |
m_metaData["mimetype"] = mtype;
|
225 |
m_metaData["mimetype"] = mtype;
|
226 |
string md5, xmd5;
|
226 |
string md5, xmd5;
|
227 |
MD5String(m_metaData["content"], md5);
|
227 |
MD5String(m_metaData["content"], md5);
|
228 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
228 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
229 |
} else {
|
229 |
} else {
|
|
|
230 |
m_metaData["mimetype"] = mtype.empty() ? "text/html" : mtype;
|
230 |
m_metaData.erase("ipath");
|
231 |
m_metaData.erase("ipath");
|
231 |
string md5, xmd5, reason;
|
232 |
string md5, xmd5, reason;
|
232 |
if (MD5File(m_fn, md5, &reason)) {
|
233 |
if (MD5File(m_fn, md5, &reason)) {
|
233 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
234 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
234 |
} else {
|
235 |
} else {
|