|
a/src/internfile/mh_exec.cpp |
|
b/src/internfile/mh_exec.cpp |
|
... |
|
... |
23 |
#include "mh_html.h"
|
23 |
#include "mh_html.h"
|
24 |
#include "debuglog.h"
|
24 |
#include "debuglog.h"
|
25 |
#include "cancelcheck.h"
|
25 |
#include "cancelcheck.h"
|
26 |
#include "smallut.h"
|
26 |
#include "smallut.h"
|
27 |
#include "transcode.h"
|
27 |
#include "transcode.h"
|
|
|
28 |
#include "md5.h"
|
28 |
|
29 |
|
29 |
#include <sys/types.h>
|
30 |
#include <sys/types.h>
|
30 |
#include <sys/wait.h>
|
31 |
#include <sys/wait.h>
|
31 |
|
32 |
|
32 |
#ifndef NO_NAMESPACES
|
33 |
#ifndef NO_NAMESPACES
|
|
... |
|
... |
128 |
m_metaData["origcharset"] = m_defcharset;
|
129 |
m_metaData["origcharset"] = m_defcharset;
|
129 |
// Default charset: all recoll filters output utf-8, but this
|
130 |
// Default charset: all recoll filters output utf-8, but this
|
130 |
// could still be overridden by the content-type meta tag.
|
131 |
// could still be overridden by the content-type meta tag.
|
131 |
m_metaData["charset"] = charset;
|
132 |
m_metaData["charset"] = charset;
|
132 |
m_metaData["mimetype"] = mt;
|
133 |
m_metaData["mimetype"] = mt;
|
|
|
134 |
|
|
|
135 |
string md5, xmd5, reason;
|
|
|
136 |
if (MD5File(m_fn, md5, &reason)) {
|
|
|
137 |
m_metaData["md5"] = MD5HexPrint(md5, xmd5);
|
|
|
138 |
} else {
|
|
|
139 |
LOGERR(("MimeHandlerExec: cant compute md5 for [%s]: %s\n",
|
|
|
140 |
m_fn.c_str(), reason.c_str()));
|
|
|
141 |
}
|
|
|
142 |
|
133 |
return true;
|
143 |
return true;
|
134 |
}
|
144 |
}
|