mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
7 lines
286 B
Python
7 lines
286 B
Python
def main(request, response):
|
|
headers = [(b"Content-type", request.GET.first(b"mime"))]
|
|
if b"content" in request.GET and request.GET.first(b"content") == b"empty":
|
|
content = b''
|
|
else:
|
|
content = b"console.log('Script loaded')"
|
|
return 200, headers, content
|