summaryrefslogtreecommitdiffstats
path: root/dom/cache/test/mochitest/vary.sjs
blob: 6659ac852bf580b2ed78f8b3c43f51d9450419e0 (plain)
1
2
3
4
5
6
7
8
9
function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 200, "OK");
  var header = "no WhatToVary header";
  if (request.hasHeader("WhatToVary")) {
    header = request.getHeader("WhatToVary");
    response.setHeader("Vary", header);
  }
  response.write(header);
}