summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/referrer-policy/generic/subresource/script.py
blob: efa1a955d466ef14e95f62734f2a2a7841fd67ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os, sys, json
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import subresource

def generate_payload(server_data):
    return subresource.get_template("script.js.template") % server_data

def main(request, response):
    subresource.respond(request,
                        response,
                        payload_generator = generate_payload,
                        content_type = "application/javascript")