summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/404_server.sjs
blob: f5dff1abb33b4f2795ea83fba0e181455df8f23b (plain)
1
2
3
4
5
6
7
8
9
10
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');
  }
}