tor-browser

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

authorize-server-response.py (469B)


      1 def main(request, response):
      2  response.status = (200, b"OK")
      3  response.headers.set(b"Content-Type", b"text/plain")
      4  if b"hashes" in request.GET:
      5    hash_list = request.GET.get_list(b"hashes")
      6    response.headers.set(b"Ad-Auction-Result",
      7                        b",".join(hash_list))
      8  if b"nonces" in request.GET:
      9    nonce_list = request.GET.get_list(b"nonces")
     10    response.headers.set(b"Ad-Auction-Result-Nonce",
     11                        b",".join(nonce_list))