gecko-dev/dom/base/test/bug461735-redirect1.sjs

5 строки
202 B
JavaScript

function handleRequest(request, response) {
response.setStatusLine(null, 302, "Found");
response.setHeader("Location", "http://example.com/tests/dom/base/test/bug461735-post-redirect.js", false);
}