summaryrefslogtreecommitdiffstats
path: root/netwerk/test/browser/redirect.sjs
blob: 09e7d9b1e4ba286d7c576afdb847b7086bd2ccf9 (plain)
1
2
3
4
5
6
function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
  let location = request.queryString;
  response.setHeader("Location", location, false);
  response.write("Hello world!");
}