do not replace for "application/*"

This commit is contained in:
Son NK 2020-12-04 11:33:49 +01:00
parent 59daaa3164
commit 83df119178
1 changed files with 2 additions and 0 deletions

View File

@ -770,7 +770,9 @@ def replace(msg: Message, old, new) -> Message:
or content_type.startswith("video/")
or content_type.startswith("audio/")
or content_type == "multipart/signed"
or content_type.startswith("application/")
):
LOG.d("not applicable for %s", content_type)
return msg
if content_type in ("text/plain", "text/html"):