repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 1648426 [wpt PR 24337] - Python 3: port tests in service-workers [part 4], a...
[gecko.git]
/
testing
/
web-platform
/
tests
/
service-workers
/
service-worker
/
resources
/
success.py
blob
a0269918ee8f1c8e79896f977c6d9129821ff96e
1
def
main
(
request
,
response
):
2
headers
= []
3
4
if
b
"ACAOrigin"
in
request
.
GET
:
5
for
item
in
request
.
GET
[
b
"ACAOrigin"
].
split
(
b
","
):
6
headers
.
append
((
b
"Access-Control-Allow-Origin"
,
item
))
7
8
return
headers
,
b
"{
\"
result
\"
:
\"
success
\"
}"