summaryrefslogtreecommitdiffstats
path: root/remote/cdp/test/browser/page/sjs_redirect.sjs
blob: b3dbf44f539371639da5dff7a35cb4b75f4faaa7 (plain)
1
2
3
4
5
6
7
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
  response.setHeader("Location", request.queryString, false);
}