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.sjs10
1 files changed, 10 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..edca5e4692
--- /dev/null
+++ b/dom/file/ipc/tests/ok.sjs
@@ -0,0 +1,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"));
+}