summaryrefslogtreecommitdiffstats
path: root/dom/file/ipc/tests/ok.sjs
blob: edca5e469283471e556b0216f55bf234c288359c (plain)
1
2
3
4
5
6
7
8
9
10
const CC = Components.Constructor;
const BinaryInputStream = CC("@mozilla.org/binaryinputstream;1",
                             "nsIBinaryInputStream",
                             "setInputStream");

function handleRequest(request, response)
{
  response.setHeader("Content-Type", "text/html", false);
  response.write(request.getHeader("Content-Length"));
}