summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/streamfilter_server.sjs
blob: 0e5a62d1dd0d243fd06858a8157f948d4ad65601 (plain)
1
2
3
4
5
6
7
8
9
Components.utils.importGlobalProperties(["URLSearchParams"]);

function handleRequest(request, response) {
  const searchParams = new URLSearchParams(request.queryString);

  if (searchParams.get("syntheticResponse") === "0") {
    response.write(String(searchParams));
  }
}