mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40280: WASM docs and smaller browser builds (GH-32412)
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
dc14e33eff
commit
defbbd68f7
6 changed files with 231 additions and 54 deletions
|
@ -14,6 +14,13 @@ parser.add_argument(
|
|||
|
||||
|
||||
class MyHTTPRequestHandler(server.SimpleHTTPRequestHandler):
|
||||
extensions_map = server.SimpleHTTPRequestHandler.extensions_map.copy()
|
||||
extensions_map.update(
|
||||
{
|
||||
".wasm": "application/wasm",
|
||||
}
|
||||
)
|
||||
|
||||
def end_headers(self):
|
||||
self.send_my_headers()
|
||||
super().end_headers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue