summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/resources/parse-headers.py
blob: fdc626539e842f6660f533a3684da72e719cef09 (plain)
1
2
3
4
5
6
7
8
9
10
import json

def main(request, response):

    content = ""
    if "my-custom-header" in request.GET:
        val = request.GET.first("my-custom-header")
        response.headers.set("My-Custom-Header", val)

    return content