tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

file_http_background_request.sjs (488B)


      1 // Custom *.sjs file specifically for the needs of Bug 1663396
      2 
      3 function handleRequest(request, response) {
      4   // avoid confusing cache behaviors
      5   response.setHeader("Cache-Control", "no-cache", false);
      6 
      7   if (request.scheme === "https") {
      8     // Simulating a timeout by processing the https request
      9     // async and *never* return anything!
     10     response.processAsync();
     11     return;
     12   }
     13   // we should never get here; just in case, return something unexpected
     14   response.write("do'h");
     15 }