summaryrefslogtreecommitdiffstats
path: root/browser/components/search/test/browser/mozsearch.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/search/test/browser/mozsearch.sjs')
-rw-r--r--browser/components/search/test/browser/mozsearch.sjs11
1 files changed, 11 insertions, 0 deletions
diff --git a/browser/components/search/test/browser/mozsearch.sjs b/browser/components/search/test/browser/mozsearch.sjs
new file mode 100644
index 0000000000..bde867c93e
--- /dev/null
+++ b/browser/components/search/test/browser/mozsearch.sjs
@@ -0,0 +1,11 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+function handleRequest(req, resp) {
+ resp.setHeader("Content-Type", "text/html", false);
+ if (req.hasHeader("Origin") && req.getHeader("Origin") != "null") {
+ resp.write("error");
+ return;
+ }
+ resp.write("hello world");
+}