mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 07:43:54 +08:00
handle encoding typo
This commit is contained in:
parent
9fb6e45077
commit
5843fa94a0
1 changed files with 2 additions and 2 deletions
|
@ -844,8 +844,8 @@ def get_encoding(msg: Message) -> EmailEncoding:
|
|||
- base64
|
||||
- 7bit: default if unknown or empty
|
||||
"""
|
||||
cte = str(msg.get("content-transfer-encoding", "")).lower()
|
||||
if cte in ("", "7bit", "8bit", "binary"):
|
||||
cte = str(msg.get("content-transfer-encoding", "")).lower().strip()
|
||||
if cte in ("", "7bit", "8bit", "binary", "8bit;"):
|
||||
return EmailEncoding.NO
|
||||
|
||||
if cte == "base64":
|
||||
|
|
Loading…
Reference in a new issue