gecko/dom/tests/mochitest/beacon/beacon-set-cookie.sjs

9 lines
305 B
JavaScript

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");
}