|
a/src/internfile/mh_execm.cpp |
|
b/src/internfile/mh_execm.cpp |
|
... |
|
... |
266 |
}
|
266 |
}
|
267 |
}
|
267 |
}
|
268 |
m_metaData[cstr_mimetype] = mtype;
|
268 |
m_metaData[cstr_mimetype] = mtype;
|
269 |
string md5, xmd5;
|
269 |
string md5, xmd5;
|
270 |
MD5String(m_metaData[cstr_content], md5);
|
270 |
MD5String(m_metaData[cstr_content], md5);
|
271 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
271 |
m_metaData[cstr_md5] = MD5HexPrint(md5, xmd5);
|
272 |
} else {
|
272 |
} else {
|
273 |
m_metaData[cstr_mimetype] = mtype.empty() ? "text/html" : mtype;
|
273 |
m_metaData[cstr_mimetype] = mtype.empty() ? "text/html" : mtype;
|
274 |
m_metaData.erase(cstr_ipath);
|
274 |
m_metaData.erase(cstr_ipath);
|
275 |
string md5, xmd5, reason;
|
275 |
string md5, xmd5, reason;
|
276 |
if (MD5File(m_fn, md5, &reason)) {
|
276 |
if (MD5File(m_fn, md5, &reason)) {
|
277 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
277 |
m_metaData[cstr_md5] = MD5HexPrint(md5, xmd5);
|
278 |
} else {
|
278 |
} else {
|
279 |
LOGERR(("MimeHandlerExecM: cant compute md5 for [%s]: %s\n",
|
279 |
LOGERR(("MimeHandlerExecM: cant compute md5 for [%s]: %s\n",
|
280 |
m_fn.c_str(), reason.c_str()));
|
280 |
m_fn.c_str(), reason.c_str()));
|
281 |
}
|
281 |
}
|
282 |
}
|
282 |
}
|