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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/beacon/beacon-set-cookie.sjs	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,8 @@
     1.4 +function handleRequest(request, response)
     1.5 +{
     1.6 +  response.setHeader("Set-Cookie", "cookie="+ request.host + "~" + Math.random());
     1.7 +  response.setHeader("Content-Type", "text/plain", false);
     1.8 +  response.setHeader("Cache-Control", "no-cache", false);
     1.9 +
    1.10 +  response.setStatusLine(request.httpVersion, 200, "OK");
    1.11 +}

mercurial