gecko-dev/content/base/test/bug457746.sjs

12 строки
377 B
Plaintext
Исходник Обычный вид История

2008-09-30 00:36:28 +04:00
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);
}