gecko-dev/netwerk/test/mochitests/redirect.sjs

9 строки
257 B
JavaScript

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#");
}