summaryrefslogtreecommitdiffstats
path: root/dom/base/test/chrome/bug884693.sjs
blob: 30d4f8a033bd2b7f5026600974c6c364f4548250 (plain)
1
2
3
4
5
6
7
8
function handleRequest(request, response)
{
  let [status, statusText, body] = request.queryString.split("&");
  response.setStatusLine(request.httpVersion, status, statusText);
  response.setHeader("Content-Type", "text/xml", false);
  response.setHeader("Content-Length", "" + body.length, false);
  response.write(body);
}