michael@0: function handleRequest(request, response) michael@0: { michael@0: response.setHeader("Content-Type", "text/plain; charset=ISO-8859-1", false); michael@0: const body = [0xC1]; michael@0: var bos = Components.classes["@mozilla.org/binaryoutputstream;1"] michael@0: .createInstance(Components.interfaces.nsIBinaryOutputStream); michael@0: bos.setOutputStream(response.bodyOutputStream); michael@0: michael@0: bos.writeByteArray(body, body.length); michael@0: } michael@0: