image/test/mochitest/bug733553-informant.sjs

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/test/mochitest/bug733553-informant.sjs	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 + * http://creativecommons.org/publicdomain/zero/1.0/
     1.6 + */
     1.7 +
     1.8 +function handleRequest(request, response)
     1.9 +{
    1.10 +  response.setHeader("Content-Type", "text/plain", false);
    1.11 +  response.setHeader("Cache-Control", "no-cache", false);
    1.12 +  response.setStatusLine(request.httpVersion, 200, "OK");
    1.13 +  // Tells bug733553.sjs that the consumer is ready for the next part
    1.14 +  let partName = request.queryString;
    1.15 +  setSharedState("next-part", partName);
    1.16 +  response.write("OK!");
    1.17 +}
    1.18 +

mercurial