blob: b6e82f31d3732a385401bf4fc3d2fd9908e8887e (
plain)
1
2
3
4
5
6
7
8
9
10
|
def main(request, response):
if b'mime' in request.GET:
return (
[(b'Content-Type', b'application/javascript')],
b"importScripts('./mime-type-worker.py?mime=%s');" % request.GET[b'mime']
)
return (
[(b'Content-Type', b'application/javascript')],
b"importScripts('./mime-type-worker.py');"
)
|