summaryrefslogtreecommitdiffstats
path: root/dom/base/test/bug482935.sjs
blob: b480c40e411ddd59b2ab41a3ea21aac9c9839b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function handleRequest(request, response) {
  var body = "initial";

  try {
    body = request.getHeader("X-Request");
  } catch (e) {
    body = "request.getHeader() failed! Exception: " + e;
  }

  response.setHeader("Cache-Control", "max-age=3600");
  response.bodyOutputStream.write(body, body.length);
}