summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/resources/echo-method.py
blob: 5351d1961ac0254106c374e2b2ead84bbc6878d4 (plain)
1
2
3
4
5
6
def main(request, response):
    response.send_body_for_head_request = True
    headers = [("Content-type", "text/plain")]
    content = request.method

    return headers, content