summaryrefslogtreecommitdiffstats
path: root/dom/base/test/bug457746.sjs
blob: e93e7e4f8d1e9c9b415976f67c8c748ac878cf07 (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 = Cc["@mozilla.org/binaryoutputstream;1"].createInstance(
    Ci.nsIBinaryOutputStream
  );
  bos.setOutputStream(response.bodyOutputStream);

  bos.writeByteArray(body);
}