gecko-dev/dom/xhr/tests/file_XHRDocURI.sjs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 строки
411 B
Plaintext
Исходник Обычный вид История

function handleRequest(aRequest, aResponse)
{
var url = aRequest.queryString.match(/\burl=([^#&]*)/);
if (!url) {
aResponse.setStatusLine(aRequest.httpVersion, 404, "Not Found");
return;
}
url = decodeURIComponent(url[1]);
aResponse.setStatusLine(aRequest.httpVersion, 302, "Found");
aResponse.setHeader("Cache-Control", "no-cache", false);
aResponse.setHeader("Location", url, false);
}