def main(request, response):
    handler = (lambda data: generate_payload(request, data))
    content_type = b'application/x-font-truetype'
    if (b'report-headers' in request.GET):
        handler = (lambda data: generate_report_headers_payload(request, data))
        content_type = b'application/json'
    subresource.respond(request, response, payload_generator=handler, content_type=content_type, access_control_allow_origin=b'*')
def main(request, response):
    handler = (lambda data: generate_payload(request, data))
    content_type = b'application/x-font-truetype'
    if (b'report-headers' in request.GET):
        handler = (lambda data: generate_report_headers_payload(request, data))
        content_type = b'application/json'
    subresource.respond(request, response, payload_generator=handler, content_type=content_type, access_control_allow_origin=b'*')