summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/xhr/resources/echo-headers.py
blob: 58a7ed5637f9d2b193f40380f0a6e4e96306b905 (plain)
1
2
3
4
5
6
7
def main(request, response):
    response.writer.write_status(200)
    response.writer.write_header(b"Content-Type", b"text/plain")
    response.writer.write_header(b"Connection", b"close")
    response.writer.end_headers()
    response.writer.write(str(request.raw_headers))
    response.close_connection = True