Case insensitive check for Content-Transfer-Encoding
diff --git a/parsemail.go b/parsemail.go
index 6ee0624..8a62e26 100644
--- a/parsemail.go
+++ b/parsemail.go
@@ -232,7 +232,7 @@
 func decodePartData(part *multipart.Part) (io.Reader, error) {
 	encoding := part.Header.Get("Content-Transfer-Encoding")
 
-	if encoding == "base64" {
+	if strings.EqualFold(encoding, "base64") {
 		dr := base64.NewDecoder(base64.StdEncoding, part)
 		dd, err := ioutil.ReadAll(dr)
 		if err != nil {