summaryrefslogtreecommitdiffstats
path: root/docshell/test/chrome/test_docRedirect.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'docshell/test/chrome/test_docRedirect.sjs')
-rw-r--r--docshell/test/chrome/test_docRedirect.sjs6
1 files changed, 6 insertions, 0 deletions
diff --git a/docshell/test/chrome/test_docRedirect.sjs b/docshell/test/chrome/test_docRedirect.sjs
new file mode 100644
index 0000000000..4050eb06d7
--- /dev/null
+++ b/docshell/test/chrome/test_docRedirect.sjs
@@ -0,0 +1,6 @@
+function handleRequest(request, response) {
+ response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
+ // eslint-disable-next-line @microsoft/sdl/no-insecure-url
+ response.setHeader("Location", "http://example.org/");
+ response.write("Hello world!");
+}