Removed instantiatestreaming hack
parent
dae1e76e35
commit
02d535282a
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
# From https://gist.github.com/prideout/09af26cef84eef3e06a1e3f20a499a48
|
||||||
|
|
||||||
|
import http.server
|
||||||
|
import socketserver
|
||||||
|
|
||||||
|
PORT = 8000
|
||||||
|
|
||||||
|
handler = http.server.SimpleHTTPRequestHandler
|
||||||
|
handler.extensions_map.update({
|
||||||
|
'.wasm': 'application/wasm',
|
||||||
|
})
|
||||||
|
|
||||||
|
socketserver.TCPServer.allow_reuse_address = True
|
||||||
|
with socketserver.TCPServer(("", PORT), handler) as httpd:
|
||||||
|
httpd.allow_reuse_address = True
|
||||||
|
print("Serving at port", PORT)
|
||||||
|
httpd.serve_forever()
|
Loading…
Reference in New Issue