summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/ajax/offline/manifestRedirect.sjs')
-rw-r--r--dom/tests/mochitest/ajax/offline/manifestRedirect.sjs6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs b/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs
new file mode 100644
index 000000000..55326a4cf
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs
@@ -0,0 +1,6 @@
+function handleRequest(request, response)
+{
+ response.setStatusLine(request.httpVersion, 307, "Moved temporarly");
+ response.setHeader("Location", "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/updating.cacheManifest");
+ response.setHeader("Content-Type", "text/cache-manifest");
+}