summaryrefslogtreecommitdiffstats
path: root/dom/base/test/bug1576154.sjs
blob: d18151a8b46176eb2c44a012ef6e39a45f3bfbe2 (plain)
1
2
3
4
5
6
7
8
function handleRequest(request, response) {
  response.setStatusLine("1.1", 500, "Internal Server Error");
  response.setHeader("Content-Type", "image/svg+xml", false);

  let body =
    "<svg xmlns='http://www.w3.org/2000/svg' width='70' height='0'></svg>";
  response.bodyOutputStream.write(body, body.length);
}