mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
24 lines
595 B
JavaScript
24 lines
595 B
JavaScript
/**
|
|
* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/
|
|
*/
|
|
function handleRequest(request, response)
|
|
{
|
|
response.setHeader("Content-Type", "text/plain", false);
|
|
response.setHeader("Cache-Control", "no-cache", false);
|
|
|
|
if (request.method == "POST") {
|
|
setState("seenPost" + request.queryString, "1");
|
|
return;
|
|
}
|
|
|
|
if (request.method == "GET") {
|
|
if (getState("seenPost" + request.queryString) == "1") {
|
|
response.write("closed");
|
|
}
|
|
return;
|
|
}
|
|
|
|
response.setStatusLine(request.httpVersion, 404, "Not found");
|
|
}
|