blob: d014df2cee061b3551f6cc4b3587bc58112d9e33 (
plain)
1
2
3
4
5
6
7
8
9
10
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);
}
|