From 0d9ba278fea0110c5510171d87a6a5a172385267 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Mon, 22 Jan 2024 17:48:49 +0100 Subject: [PATCH] Update common content types in encoding.go The list of common content types in encoding.go has been revised. The type "multipart/alternative" has been added and the order of types has been adjusted for consistency with net/smtp upstream. --- encoding.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/encoding.go b/encoding.go index 1491ab0..39c58e3 100644 --- a/encoding.go +++ b/encoding.go @@ -138,11 +138,12 @@ const ( // List of common content types const ( - TypeTextPlain ContentType = "text/plain" - TypeTextHTML ContentType = "text/html" - TypeAppOctetStream ContentType = "application/octet-stream" - TypePGPSignature ContentType = "application/pgp-signature" - TypePGPEncrypted ContentType = "application/pgp-encrypted" + TypeAppOctetStream ContentType = "application/octet-stream" + TypeMultipartAlternative ContentType = "multipart/alternative" + TypePGPSignature ContentType = "application/pgp-signature" + TypePGPEncrypted ContentType = "application/pgp-encrypted" + TypeTextHTML ContentType = "text/html" + TypeTextPlain ContentType = "text/plain" ) // List of MIMETypes