diff options
Diffstat (limited to 'dom/workers/test/serviceworkers/redirect.sjs')
-rw-r--r-- | dom/workers/test/serviceworkers/redirect.sjs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/workers/test/serviceworkers/redirect.sjs b/dom/workers/test/serviceworkers/redirect.sjs new file mode 100644 index 000000000..b6249cadf --- /dev/null +++ b/dom/workers/test/serviceworkers/redirect.sjs @@ -0,0 +1,5 @@ +function handleRequest(request, response) +{ + response.setStatusLine(request.httpVersion, 301, "Moved Permanently"); + response.setHeader("Location", request.queryString, false); +} |