Dactyloidae/testing/web-platform/tests/XMLHttpRequest/resources/echo-method.py

6 lines
181 B
Python
Raw Normal View History

def main(request, response):
response.send_body_for_head_request = True
headers = [("Content-type", "text/plain")]
content = request.method
return headers, content