servo/tests/wpt/web-platform-tests/encoding/resources/single-byte-raw.py

3 lines
184 B
Python

def main(request, response):
response.headers.set("Content-Type", "text/plain;charset=" + request.GET.first("label"))
response.content = "".join(chr(byte) for byte in xrange(255))