gecko-dev/content/base/test/bug426308-redirect.sjs

5 строки
154 B
JavaScript

function handleRequest(request, response) {
response.setStatusLine(null, 302, "Found");
response.setHeader("Location", request.queryString, false);
}