summaryrefslogtreecommitdiffstats
path: root/netwerk/test/httpserver/test/data/sjs/cgi.sjs
blob: a6b987a8b7aab024eacb8a8dc8d296dc2d278422 (plain)
1
2
3
4
5
6
7
8
function handleRequest(request, response) {
  if (request.queryString == "throw") {
    throw new Error("monkey wrench!");
  }

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