OLD | NEW |
(Empty) | |
| 1 def main(request, response): |
| 2 type = request.GET.first("type", None) |
| 3 |
| 4 content = "// nothing to see here" |
| 5 content += "\n" |
| 6 content += "this.postMessage('hi')" |
| 7 |
| 8 response.add_required_headers = False |
| 9 response.writer.write_status(200) |
| 10 response.writer.write_header("x-content-type-options", "nosniff") |
| 11 response.writer.write_header("content-length", len(content)) |
| 12 if(type != None): |
| 13 response.writer.write_header("content-type", type) |
| 14 response.writer.end_headers() |
| 15 |
| 16 response.writer.write(content) |
OLD | NEW |