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

Clean up previous commit (pretty much a copy/paste from 822header.js)

parent 5adc0334
No related branches found
No related tags found
No related merge requests found
......@@ -65,15 +65,10 @@ function write_news_header(hdr,writeln)
}
}
if(content_type==undefined) {
var charset = hdr.text_charset;
if(!charset)
charset = "IBM437";
if(hdr.is_utf8)
charset = "UTF-8";
var charset = hdr.text_charset || (hdr.is_utf8 ? "UTF-8" : "IBM437");
writeln("Content-Type: text/plain; charset=" + charset);
writeln("Content-Transfer-Encoding: 8bit");
}
}
function parse_news_header(hdr, line)
......
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