mirror of
https://github.com/servo/servo.git
synced 2025-10-10 13:30:20 +01:00
9 lines
261 B
Python
9 lines
261 B
Python
def main(request, response):
|
|
ua = request.headers.get(b'Sec-CH-UA', b'')
|
|
response.headers.set(b"Content-Type", b"text/html")
|
|
response.content = b'''
|
|
<script>
|
|
window.opener.postMessage({ header: '%s' }, "*");
|
|
</script>
|
|
Sec-CH-UA: %s
|
|
''' % (ua, ua)
|