mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
0c788084d3
--HG-- rename : dom/workers/test/test_404.html => dom/workers/test/test_bug1036484.html
11 lines
267 B
JavaScript
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');
|
|
}
|
|
}
|