summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/404_server.sjs
blob: f83281efa8f45b8e5c7e7792eeecc3bd950f2515 (plain)
1
2
3
4
5
6
7
8
9
function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 404, "Not found");

  // Any valid JS.
  if (request.queryString == "js") {
    response.setHeader("Content-Type", "text/javascript", false);
    response.write("4 + 4");
  }
}