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
bloba0269918ee8f1c8e79896f977c6d9129821ff96e
1 def main(request, response):
2 headers = []
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))
8 return headers, b"{ \"result\": \"success\" }"