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