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

4 lines
184 B
Python

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