image/test/reftest/icon/win/bug415761cleanup.sjs

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 function handleRequest(request, response)
     2 {
     3   var self = Components.classes["@mozilla.org/file/local;1"]
     4                        .createInstance(Components.interfaces.nsILocalFile);
     5   self.initWithPath(getState("__LOCATION__"));
     6   var dest = self.parent;
     7   dest.append("\u263a.ico");
     8   if (dest.exists())
     9     dest.remove(false);
    10   response.setStatusLine(request.httpVersion, 200, "OK");
    11   response.setHeader("Content-Type", "text/html");
    12 }

mercurial