https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9e34bb15e5b4662e9d59ec01e9d0e228e49b44ee authored by Jake Archibald on 06 April 2018, 15:33:01 UTC
Testing range header is actually sent to the server
Tip revision: 9e34bb1
form-echo.py
def main(request, response):
    bytes = bytearray(request.raw_input.read())
    bytes_string = " ".join("%02x" % b for b in bytes)
    return (
        [("Content-Type", "text/plain")],
        bytes_string
    )
back to top