tor-browser

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

file_XHR_header.sjs (406B)


      1 // SJS file for getAllResponseRequests vs getResponseRequest
      2 function handleRequest(request, response) {
      3   // Header strings are interpreted by truncating the characters in them to
      4   // bytes, so U+2026 HORIZONTAL ELLIPSIS here must be encoded manually: using
      5   // "…" as the string would write a \x26 byte.
      6   response.setHeader("X-Custom-Header-Bytes", "\xE2\x80\xA6", false);
      7   response.write("42");
      8 }