diff -r 000000000000 -r 6474c204b198 content/base/test/bug457746.sjs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/base/test/bug457746.sjs Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,11 @@ +function handleRequest(request, response) +{ + response.setHeader("Content-Type", "text/plain; charset=ISO-8859-1", false); + const body = [0xC1]; + var bos = Components.classes["@mozilla.org/binaryoutputstream;1"] + .createInstance(Components.interfaces.nsIBinaryOutputStream); + bos.setOutputStream(response.bodyOutputStream); + + bos.writeByteArray(body, body.length); +} +