summaryrefslogtreecommitdiffstats
path: root/rfc2045/rfc2045.c
diff options
context:
space:
mode:
authorSam Varshavchik2018-07-29 09:43:38 -0400
committerSam Varshavchik2018-07-29 09:43:38 -0400
commit8110e928827657babbe047832460d768310d789d (patch)
treef7955d5a635433207da3510408b23f0395c3838b /rfc2045/rfc2045.c
parent92af82b7b2e35f37421ff0724ffadf4eda06c840 (diff)
downloadcourier-libs-8110e928827657babbe047832460d768310d789d.tar.bz2
UTF8 changes.
Diffstat (limited to 'rfc2045/rfc2045.c')
-rw-r--r--rfc2045/rfc2045.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/rfc2045/rfc2045.c b/rfc2045/rfc2045.c
index 4e62e39..337ea34 100644
--- a/rfc2045/rfc2045.c
+++ b/rfc2045/rfc2045.c
@@ -743,8 +743,8 @@ char *p;
int rfc2045_message_content_type(const char *content_type)
{
- return strcmp(content_type, RFC2045_MIME_MESSAGE_RFC822) == 0 ||
- strcmp(content_type, RFC2045_MIME_MESSAGE_GLOBAL) == 0;
+ return strcasecmp(content_type, RFC2045_MIME_MESSAGE_RFC822) == 0 ||
+ strcasecmp(content_type, RFC2045_MIME_MESSAGE_GLOBAL) == 0;
}
/*
@@ -753,18 +753,18 @@ int rfc2045_message_content_type(const char *content_type)
int rfc2045_delivery_status_content_type(const char *content_type)
{
- return strcmp(content_type,
+ return strcasecmp(content_type,
RFC2045_MIME_MESSAGE_DELIVERY_STATUS) == 0 ||
- strcmp(content_type,
+ strcasecmp(content_type,
RFC2045_MIME_MESSAGE_GLOBAL_DELIVERY_STATUS) == 0;
}
int rfc2045_message_headers_content_type(const char *content_type)
{
- return strcmp(content_type,
- RFC2045_MIME_MESSAGE_HEADERS) == 0 ||
- strcmp(content_type,
- RFC2045_MIME_MESSAGE_GLOBAL_HEADERS) == 0;
+ return strcasecmp(content_type,
+ RFC2045_MIME_MESSAGE_HEADERS) == 0 ||
+ strcasecmp(content_type,
+ RFC2045_MIME_MESSAGE_GLOBAL_HEADERS) == 0;
}
/* Various permutations of the above, including forcing the string to