summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/bug792517.sjs
blob: c1f2b282fb8ba554a9c880c71bd6dd9c156dcdbe (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");
  }
}