blob: e2dce0b3c673bbe8e8805ede3e25c0299f9de217 (
plain)
1
2
3
4
5
6
7
8
9
10
|
function handleRequest(request, response) {
response.setHeader(
"Set-Cookie",
"cookie=" + request.host + "~" + Math.random()
);
response.setHeader("Content-Type", "text/plain", false);
response.setHeader("Cache-Control", "no-cache", false);
response.setStatusLine(request.httpVersion, 200, "OK");
}
|