summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resource-timing/resources/status-code.py
blob: 1c6a0216333289b9c5af5f90ea62827e4b687338 (plain)
1
2
3
4
5
6
7
8
def main(request, response):
    status = request.GET.first(b'status')
    response.status = (status, b"");
    if b'tao_value' in request.GET:
      response.headers.set(b'timing-allow-origin', request.GET.first(b'tao_value'))
    if b'allow_origin' in request.GET:
      response.headers.set(b'access-control-allow-origin', request.GET.first(b'allow_origin'))