servo/tests/wpt/web-platform-tests/fetch/h1-parsing/resources/document-with-0x00-in-header.py

4 lines
179 B
Python

def main(request, response):
response.headers.set("Content-Type", "text/html")
response.headers.set("Custom", "\0")
return "<!doctype html><b>This is a document.</b>"