1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/bug457746.sjs Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +function handleRequest(request, response) 1.5 +{ 1.6 + response.setHeader("Content-Type", "text/plain; charset=ISO-8859-1", false); 1.7 + const body = [0xC1]; 1.8 + var bos = Components.classes["@mozilla.org/binaryoutputstream;1"] 1.9 + .createInstance(Components.interfaces.nsIBinaryOutputStream); 1.10 + bos.setOutputStream(response.bodyOutputStream); 1.11 + 1.12 + bos.writeByteArray(body, body.length); 1.13 +} 1.14 +