summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/client-hints/resources/script-set-dpr-header.py
blob: 9a65886ed87270ca5176a2856984d2cbfcd9a5de (plain)
1
2
3
4
def main(request, response):
    headers = [(b"Content-Type", b"text/javascript")]
    body = u'dprHeader = "%s";' % request.headers.get(b'sec-ch-dpr', '')
    return 200, headers, body