tor-browser

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

res_hello_h1.sjs (307B)


      1 "use strict";
      2 
      3 function handleRequest(request, response) {
      4   const query = new URLSearchParams(request.queryString);
      5 
      6   // If the
      7   let type = "text/html";
      8   if (query.has("type")) {
      9     type = query.get("type");
     10   }
     11   response.setHeader("Content-Type", type, false);
     12 
     13   response.write(`<h1>hello</h1>`);
     14 }