summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/xhr/resources/parse-headers.py
blob: 8520baad880fc0e6cf7cf3c8e8194c18fcfee309 (plain)
1
2
3
4
5
6
def main(request, response):
    content = u""
    if b"my-custom-header" in request.GET:
        val = request.GET.first(b"my-custom-header")
        response.headers.set(b"My-Custom-Header", val)
    return content