mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
14 lines
411 B
JavaScript
14 lines
411 B
JavaScript
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);
|
|
}
|