Sign in
webkit
/
WebKit
/
0f9dda3eb5e8bee1224032800f3b156cd5ce812d
/
.
/
LayoutTests
/
http
/
tests
/
navigation
/
resources
/
user-agent-script.py
blob: d00f4c2893f6896a73bcc66d89680b640f741349 [
file
] [
log
] [
blame
]
#!/usr/bin/env python3
import
os
import
sys
user_agent
=
os
.
environ
.
get
(
'HTTP_USER_AGENT'
,
''
)
sys
.
stdout
.
write
(
'Content-Type: application/javascript\r\n\r\n'
'window.subresourceUserAgent = "{}";\n'
.
format
(
user_agent
)
)