Switch to unified view

a/src/internfile/mh_execm.cpp b/src/internfile/mh_execm.cpp
...
...
276
                    mtype = "application/octet-stream";
276
                    mtype = "application/octet-stream";
277
                }
277
                }
278
            }
278
            }
279
        }
279
        }
280
        m_metaData[cstr_dj_keymt] = mtype;
280
        m_metaData[cstr_dj_keymt] = mtype;
281
  if (!m_forPreview) {
281
        string md5, xmd5;
282
      string md5, xmd5;
282
        MD5String(m_metaData[cstr_dj_keycontent], md5);
283
      MD5String(m_metaData[cstr_dj_keycontent], md5);
283
        m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
284
      m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
285
  }
284
    } else {
286
    } else {
285
        m_metaData[cstr_dj_keymt] = mtype.empty() ? "text/html" : mtype;
287
        m_metaData[cstr_dj_keymt] = mtype.empty() ? "text/html" : mtype;
286
        m_metaData.erase(cstr_dj_keyipath);
288
        m_metaData.erase(cstr_dj_keyipath);
289
  if (!m_forPreview) {
287
        string md5, xmd5, reason;
290
      string md5, xmd5, reason;
288
        if (MD5File(m_fn, md5, &reason)) {
291
      if (MD5File(m_fn, md5, &reason)) {
289
            m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
292
      m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
290
        } else {
293
      } else {
291
            LOGERR(("MimeHandlerExecM: cant compute md5 for [%s]: %s\n",
294
      LOGERR(("MimeHandlerExecM: cant compute md5 for [%s]: %s\n",
292
                    m_fn.c_str(), reason.c_str()));
295
          m_fn.c_str(), reason.c_str()));
293
        }
296
      }
297
  }
294
    }
298
    }
295
299
296
    handle_cs(m_metaData[cstr_dj_keymt], charset);
300
    handle_cs(m_metaData[cstr_dj_keymt], charset);
297
301
298
    if (eofnext_received)
302
    if (eofnext_received)