summaryrefslogtreecommitdiff
path: root/dom/base/test/bug482935.sjs
blob: daadb5ab2faee8a9653aca232c12c5ef41b31a0e (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);
}