summaryrefslogtreecommitdiffstats
path: root/dom/base/test/chrome/bug884693.sjs
blob: f2650753f26aded199985d32f7feeedd16760278 (plain)
1
2
3
4
5
6
7
8
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);
}