I use Part.Read() to read from a multipart body containing parts that have
Content-Transfer-Encoding: Quoted-printable with non-lowercase quoted-printable.
The correctly decoded letter ü. RFC 2045 6.1 states that this header field is case insensitive and as always with e-mail, apart from the RFC only creativity is the limit. I got QUOTED-PRINTABLE and Quoted-Printable so far…
What did you see instead?
The raw =C3=BC.
In src/mime/multipart/multipart.go:138 the check appears to assume lower case transfer encoding.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use
Part.Read()
to read from a multipart body containing parts that haveContent-Transfer-Encoding: Quoted-printable
with non-lowercase quoted-printable.https://play.golang.org/p/G_4Dq4YEo4_4
What did you expect to see?
The correctly decoded letter ü. RFC 2045 6.1 states that this header field is case insensitive and as always with e-mail, apart from the RFC only creativity is the limit. I got QUOTED-PRINTABLE and Quoted-Printable so far…
What did you see instead?
The raw
=C3=BC
.In src/mime/multipart/multipart.go:138 the check appears to assume lower case transfer encoding.