mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
small refactor
This commit is contained in:
parent
6468f7c8a5
commit
9299904fc9
1 changed files with 1 additions and 1 deletions
|
@ -844,7 +844,7 @@ def get_encoding(msg: Message) -> EmailEncoding:
|
|||
- base64
|
||||
- 7bit: default if unknown or empty
|
||||
"""
|
||||
cte = str(msg.get("content-transfer-encoding", "")).lower().strip()
|
||||
cte = str(msg.get(headers.CONTENT_TRANSFER_ENCODING, "")).lower().strip()
|
||||
if cte in ("", "7bit", "8bit", "binary", "8bit;"):
|
||||
return EmailEncoding.NO
|
||||
|
||||
|
|
Loading…
Reference in a new issue