summaryrefslogtreecommitdiffstats
path: root/dom/html/test/forms/submit_invalid_file.sjs
blob: 8f8b46957c51b8ca19b3b8686ebf60bd225d2893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function handleRequest(request, response)
{
  response.setStatusLine(request.httpVersion, 200, "Ok");
  response.setHeader("Content-Type", "text/html");
  response.setHeader("Cache-Control", "no-cache");

  var result = {};
  request.bodyInputStream.search("testfile", true, result, {});
  if (result.value) {
    response.write("SUCCESS");
  } else {
    response.write("FAIL");
  }
}