browser/modules/test/contentSearchSuggestions.sjs
author Margaret Leibovic <margaret.leibovic@gmail.com>
Mon, 05 Jan 2015 16:29:08 -0800
changeset 235072 e9ef000ac1a6db6e97015564663189bf70baa108
parent 197403 e755641f95b0ae42daef273b9092fcebce02eb1a
permissions -rw-r--r--
Bug 1117841 - Remove "title bar" from display settings summary. r=mfinkle

/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

function handleRequest(req, resp) {
  let suffixes = ["foo", "bar"];
  let data = [req.queryString, suffixes.map(s => req.queryString + s)];
  resp.setHeader("Content-Type", "application/json", false);
  resp.write(JSON.stringify(data));
}