Sign in
webkit
/
WebKit
/
c6f5eb86a2e764e93f8acb30662cc524010272f6
/
.
/
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
)
)