tor-browser

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

file_httpsfirst_timeout_server.sjs (424B)


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