Sign in
chromium
/
external
/
w3c
/
web-platform-tests
/
refs/tags/merge_pr_23460
/
.
/
content-security-policy
/
reporting
/
support
/
redirect-throw-function.sub.py
blob: 6c53e0d538cde435beb14f19fd86d03c4c1216cf [
file
] [
log
] [
blame
]
import
re
def
main
(
request
,
response
):
response
.
status
=
302
;
location
=
re
.
sub
(
'redirect-throw-function.*'
,
'throw-function.js?secret=1234#ref'
,
request
.
url
)
response
.
headers
.
set
(
"Location"
,
location
);