blob: 1a11c1d5b35a80b4efb29c93ffb3060d896af0b8 (
plain)
1
2
3
4
5
6
7
|
def main(request, response):
response.add_required_headers = False
if b"content_type" in request.GET:
response.writer.write_header(b"Content-Type", request.GET.first(b"content_type"))
if b"nosniff" in request.GET:
response.writer.write_header(b"x-content-type-options", b"nosniff")
response.writer.write_content(u"body { background:red }")
|