summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/resources/headers.py
blob: cefa8ee65f70d13d545780f1b06e70bbe871bd91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
 # -*- coding: utf-8 -*-

def main(request, response):
    response.headers.set("Content-Type", "text/plain")
    response.headers.set("X-Custom-Header", "test")
    response.headers.set("Set-Cookie", "test")
    response.headers.set("Set-Cookie2", "test")
    response.headers.set("X-Custom-Header-Empty", "")
    response.headers.set("X-Custom-Header-Comma", "1")
    response.headers.append("X-Custom-Header-Comma", "2")
    response.headers.set("X-Custom-Header-Bytes", "…")
    return "TEST"