summaryrefslogtreecommitdiffstats
path: root/dom/base/test/bug457746.sjs
blob: 02135c0a5c2337e0909b5efe2f562a977be99eb7 (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);
}