summaryrefslogtreecommitdiffstats
path: root/dom/file/ipc/tests/ok.sjs
blob: 42f65733d991c7a251810e0797fb48a67c4dfa88 (plain)
1
2
3
4
5
6
7
8
9
10
11
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"));
}