summaryrefslogtreecommitdiffstats
path: root/tools/profiler/tests/browser/redirect.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/profiler/tests/browser/redirect.sjs')
-rw-r--r--tools/profiler/tests/browser/redirect.sjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/profiler/tests/browser/redirect.sjs b/tools/profiler/tests/browser/redirect.sjs
new file mode 100644
index 0000000000..2a325c3d0b
--- /dev/null
+++ b/tools/profiler/tests/browser/redirect.sjs
@@ -0,0 +1,8 @@
+function handleRequest(request, response) {
+ response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
+ response.setHeader(
+ "Location",
+ decodeURIComponent(request.queryString),
+ false
+ );
+}