aboutsummaryrefslogtreecommitdiff
path: root/tmp/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'tmp/server.py')
-rwxr-xr-xtmp/server.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tmp/server.py b/tmp/server.py
new file mode 100755
index 0000000..a76c833
--- /dev/null
+++ b/tmp/server.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+import SimpleHTTPServer
+import SocketServer
+
+PORT = 8001
+
+class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
+ pass
+
+Handler.extensions_map['.wasm'] = 'application/wasm'
+
+httpd = SocketServer.TCPServer(("", PORT), Handler)
+
+print "serving at port", PORT
+httpd.serve_forever()