summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/xslt/xslt.sjs
blob: db681ab50013fad962becd628735eda37d622198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function handleRequest(request, response) {
  response.setHeader("Content-Type", "application/xslt+xml", false);
  response.setHeader("Access-Control-Allow-Origin", "*");

  var body = request.queryString;
  if (!body) {
    response.setStatusLine(null, 500, "Invalid querystring");
    return;
  }

  response.write(unescape(body));
}