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