mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
12 lines
377 B
JavaScript
12 lines
377 B
JavaScript
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);
|
|
}
|
|
|