about summary refs log tree commit diff
path: root/rfc2045.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 11:44:53 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 12:54:03 +0200
commit9336bc9939e970c6e98fa66c13b221c8929d9e19 (patch)
tree2ee4bc79fef6e8dbdf29ac9a1e9545816dbb711d /rfc2045.c
parent9ac7a2aeb7d17fdfcb68cc2892870eed021d86d1 (diff)
downloadmblaze-9336bc9939e970c6e98fa66c13b221c8929d9e19.tar.gz
mblaze-9336bc9939e970c6e98fa66c13b221c8929d9e19.tar.xz
mblaze-9336bc9939e970c6e98fa66c13b221c8929d9e19.zip
rfc2045: downcase mime type
Diffstat (limited to 'rfc2045.c')
-rw-r--r--rfc2045.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rfc2045.c b/rfc2045.c
index 49743cb..c45f3fd 100644
--- a/rfc2045.c
+++ b/rfc2045.c
@@ -35,8 +35,10 @@ blaze822_mime_body(struct message *msg,
 		ct = "text/plain; charset=US-ASCII";
 
 	char *s = ct;
-	while (*s && *s != ';')
+	while (*s && *s != ';') {
+		*s = lc(*s);
 		s++;
+	}
 
 	*cto = ct;