Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | function handleRequest(request, response) |
michael@0 | 2 | { |
michael@0 | 3 | var p = request.queryString.split('|'); |
michael@0 | 4 | response.setHeader('Content-Language', p[0], false); |
michael@0 | 5 | response.write('<html><head><meta name="application-name" content="sjs"' + |
michael@0 | 6 | (p.length > 1 ? (' lang="' + p[1] + '"') : '') + '></head><body></body></html>'); |
michael@0 | 7 | } |