summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/bug792517.sjs
blob: 91e5aa23fee32995b0d4d93c4b87875f0994494e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/
 */

function handleRequest(aRequest, aResponse) {
 aResponse.setStatusLine(aRequest.httpVersion, 200);
 if (aRequest.hasHeader('Cookie')) {
   aResponse.write("cookie-present");
 } else {
   aResponse.setHeader("Set-Cookie", "foopy=1");
   aResponse.write("cookie-not-present");
 }
}