summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/forms/form-submission-0/form-echo.py
blob: 72f1f51ce50e90fc615a898d282eb29b5304e5f3 (plain)
1
2
3
4
5
6
7
def main(request, response):
    bytes = bytearray(request.raw_input.read())
    bytes_string = b" ".join(b"%02x" % b for b in bytes)
    return (
        [(b"Content-Type", b"text/plain")],
        bytes_string
    )