tenfourfox/dom/tests/mochitest/beacon/beacon-set-cookie.sjs
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

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