summaryrefslogtreecommitdiffstats
path: root/caps/tests/mochitest/file_bug1367586-redirect.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'caps/tests/mochitest/file_bug1367586-redirect.sjs')
-rw-r--r--caps/tests/mochitest/file_bug1367586-redirect.sjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/caps/tests/mochitest/file_bug1367586-redirect.sjs b/caps/tests/mochitest/file_bug1367586-redirect.sjs
new file mode 100644
index 0000000000..12a980155f
--- /dev/null
+++ b/caps/tests/mochitest/file_bug1367586-redirect.sjs
@@ -0,0 +1,8 @@
+function handleRequest(aRequest, aResponse) {
+ aResponse.setStatusLine(aRequest.httpVersion, 302, "Moved");
+ aResponse.setHeader(
+ "Location",
+ "http://mochi.test:8888/tests/caps/tests/mochitest/file_bug1367586-target.html"
+ );
+ aResponse.write("To be redirected to target");
+}