[PATCH 2/2] mime.sl: lowercase some more variables
Christian Ebert <[email protected]> Thu, 12 Apr 2012 16:58:51 +0200
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
To match BOUNDARY, TEXT/PLAIN etc. sucessfully.
---
macros/mime.sl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/macros/mime.sl b/macros/mime.sl
index 199759d..e6fc5e3 100644
--- a/macros/mime.sl
+++ b/macros/mime.sl
@@ -112,7 +112,7 @@ private define parse_subkeyword (key, word)
private define get_multipart_boundary (header)
{
- variable ct = get_header_key (header, "Content-Type", 0);
+ variable ct = strlow (get_header_key (header, "Content-Type", 0));
if (ct == "")
return NULL;
@@ -205,8 +205,8 @@ private define parse_mime (art)
(header, body) = split_article (art);
variable node = @Mime_Node_Type;
- node.content_type = get_header_key (header, "Content-Type", 1);
- node.disposition = get_header_key (header, "Content-Disposition", 0);
+ node.content_type = strlow (get_header_key (header, "Content-Type", 1));
+ node.disposition = strlow (get_header_key (header, "Content-Disposition", 0));
node.header = header;
node.mimetype = extract_mimetype (node.content_type);
@@ -509,7 +509,7 @@ define mime_process_multipart ()
if (h == NULL)
return;
- variable mimetype = extract_mimetype (h);
+ variable mimetype = strlow (extract_mimetype (h));
if (0 == is_substrbytes (mimetype, "multipart/"))
{
--
1.7.10.rc0.17.g74595
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2