summaryrefslogtreecommitdiffstats
path: root/dom/file/ipc/tests/ok.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'dom/file/ipc/tests/ok.sjs')
-rw-r--r--dom/file/ipc/tests/ok.sjs11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/file/ipc/tests/ok.sjs b/dom/file/ipc/tests/ok.sjs
new file mode 100644
index 0000000000..42f65733d9
--- /dev/null
+++ b/dom/file/ipc/tests/ok.sjs
@@ -0,0 +1,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"));
+}