gecko-dev/layout/style/test/redirect.sjs

6 строки
181 B
JavaScript

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