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

parse_news_header() now detects and properly-imports folded header fields

(e.g. MIME "Content-type").
parent 5fc2cdf7
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,16 @@ function write_news_header(hdr,writeln)
function parse_news_header(hdr, line)
{
/* Parse header lines */
if(line.charAt(0)==' ' || line.charAt(0)=='\t' && hdr.field_list) {
/* "folded" header field */
hdr.field_list.push(
{ type: RFC822HEADER,
data: line
}
);
return;
}
if((sp=line.indexOf(':'))==-1)
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment