summaryrefslogtreecommitdiffstats
path: root/dom/security/test/https-first/file_subdocument_downgrade.sjs
blob: 53ced94ba8d884324f5656319a6e2f401d27b4ca (plain)
1
2
3
4
5
6
7
8
function handleRequest(request, response) {
  if (request.scheme === "https") {
    response.setStatusLine("1.1", 429, "Too Many Requests");
  } else {
    response.setHeader("Content-Type", "text/html", false);
    response.write("<!doctype html><html><body></body></html>");
  }
}