blob: 8c6541f1fb1f303f972e101ba7e7a9bc802a6096 [file] [log] [blame]
Kevin Lubicke1b36fe2018-08-02 11:30:33 -04001# 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()