summaryrefslogtreecommitdiffstats
path: root/toolkit/components/url-classifier/tests/mochitest/dnt.sjs
blob: bbb836482ada34165beccce1e6fcf625e4d65a93 (plain)
1
2
3
4
5
6
7
8
9
function handleRequest(request, response) {
  var dnt = "unspecified";
  if (request.hasHeader("DNT")) {
    dnt = "1";
  }

  response.setHeader("Content-Type", "text/plain", false);
  response.write(dnt);
}