mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
do not replace for "application/*"
This commit is contained in:
parent
59daaa3164
commit
83df119178
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue