set mimetype for the non-ipath case

This commit is contained in:
dockes 2009-11-11 18:07:01 +00:00
parent cb3aa9bc1a
commit 7f5f5cf761

View File

@ -227,6 +227,7 @@ bool MimeHandlerExecMultiple::next_document()
MD5String(m_metaData["content"], md5);
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
} else {
m_metaData["mimetype"] = mtype.empty() ? "text/html" : mtype;
m_metaData.erase("ipath");
string md5, xmd5, reason;
if (MD5File(m_fn, md5, &reason)) {