DusanKasan / parsemail

Simple email parsing for Golang
MIT License
212 stars 138 forks source link

use case-insensitive string to compare the encoding #20

Closed xesina closed 2 years ago

xesina commented 4 years ago

Hey, I came across a case that some providers use Base64 as the value for Content-Transfer-Encoding. This PR just lower the encoding string before checking inside the switch.