content/base/test/bug457746.sjs

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 function handleRequest(request, response)
     2 {
     3   response.setHeader("Content-Type", "text/plain; charset=ISO-8859-1", false);
     4   const body = [0xC1];
     5   var bos = Components.classes["@mozilla.org/binaryoutputstream;1"]
     6       .createInstance(Components.interfaces.nsIBinaryOutputStream);
     7   bos.setOutputStream(response.bodyOutputStream);
     9   bos.writeByteArray(body, body.length);
    10 }

mercurial