servo/tests/wpt/web-platform-tests/encoding/resources/text-plain-charset.py

3 lines
158 B
Python

def main(request, response):
response.headers.set("Content-Type", "text/plain;charset=" + request.GET.first("label"))
response.content = "hello encoding"