1
0
Fork 0
firefox/testing/web-platform/tests/client-hints/clear-site-data/resources/clear-site-data.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

12 lines
474 B
Python

"""
Step 5 (/client-hints/clear-site-data/clear-site-data-{}.https.html)
"""
def main(request, response):
content = u'''
<script>
window.onload = function() {
window.location.href = "/client-hints/clear-site-data/resources/check-client-hints.py";
};
</script>'''
headers = [(b"Content-Type", b"text/html"), (b"Clear-Site-Data", b'"%s"' % (request.GET.first(b"target", b"*")))]
return 200, headers, content