gecko/dom/workers/test/404_server.sjs
Andrea Marchesini fb92456e66 Bug 1036484 - empty 404 worker script should emit a 'error' event, r=khuey
--HG--
rename : dom/workers/test/test_404.html => dom/workers/test/test_bug1036484.html
2014-08-10 15:33:06 +02:00

11 lines
267 B
JavaScript

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');
}
}