summaryrefslogtreecommitdiffstats
path: root/netwerk/test/mochitests/redirect.sjs
blob: e36f7c99ae596ea46f142fa48c4c0f489a1f89a1 (plain)
1
2
3
4
5
6
7
8
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;

function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
  response.setHeader("Location", "empty.html#");
}