blob: 9677c49d8762579ac8b70f506cc2dae2e406b2b2 [file] [log] [blame]
#!/usr/bin/env python3
import os
import sys
from urllib.parse import parse_qs
url = parse_qs(os.environ.get('QUERY_STRING', ''), keep_blank_values=True).get('url', [''])[0]
sys.stdout.write(
'Cache-Control: no-store\r\n'
'Connection: close\r\n'
'Content-Type: application/javascript\r\n\r\n'
'import "{}"'.format(url)
)