summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/beacon/beacon-set-cookie.sjs
blob: 341620eae867d854323cbcdf2ae2f7a08b4f87aa (plain)
1
2
3
4
5
6
7
8
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");
}