Skip to content
Snippets Groups Projects
Commit b56c5260 authored by rswindell's avatar rswindell
Browse files

Converts header field names to lower case.

parent ac33c772
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ function parse_msg_header(msgtxt) ...@@ -17,7 +17,7 @@ function parse_msg_header(msgtxt)
break; break;
var match = msgtxt[i].match(/(\S+)\s*:\s*(.*)/); var match = msgtxt[i].match(/(\S+)\s*:\s*(.*)/);
if(match) if(match)
hdr[last_field=match[1]]=match[2]; hdr[last_field=match[1].toLowerCase()]=match[2];
else if(last_field) // Folded header field else if(last_field) // Folded header field
hdr[last_field]+=msgtxt[i]; hdr[last_field]+=msgtxt[i];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment