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