1# Copyright 2018 Google LLC
2
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import SimpleHTTPServer
7import SocketServer
8
9PORT = 8000
10
11class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
12    pass
13
14Handler.extensions_map['.js'] = 'application/javascript'
15# Without the correct MIME type, async compilation doesn't work
16Handler.extensions_map['.wasm'] = 'application/wasm'
17
18httpd = SocketServer.TCPServer(("", PORT), Handler)
19
20httpd.serve_forever()
21