summaryrefslogtreecommitdiff
path: root/netwerk/test/mochitests/redirect.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/mochitests/redirect.sjs')
-rw-r--r--netwerk/test/mochitests/redirect.sjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/netwerk/test/mochitests/redirect.sjs b/netwerk/test/mochitests/redirect.sjs
new file mode 100644
index 0000000000..e36f7c99ae
--- /dev/null
+++ b/netwerk/test/mochitests/redirect.sjs
@@ -0,0 +1,8 @@
+var Cc = Components.classes;
+var Ci = Components.interfaces;
+var Cu = Components.utils;
+
+function handleRequest(request, response) {
+ response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
+ response.setHeader("Location", "empty.html#");
+}