summaryrefslogtreecommitdiffstats
path: root/dom/base/test/chrome/bug421622-referer.sjs
blob: 14cab00de40540afd715b368972a0366833c2d10 (plain)
1
2
3
4
5
6
7
8
9
function handleRequest(request, response) {
  response.setHeader("Content-Type", "text/plain", false);
  response.setHeader("Cache-Control", "no-cache", false);

  var referer = request.hasHeader("Referer")
    ? request.getHeader("Referer")
    : "";
  response.write("Referer: " + referer);
}