Skip to content

Commit b39937f

Browse files
committed
Add .wasm files to extensions_map in SimpleHTTPRequestHandler
1 parent 38642bf commit b39937f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/http/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
669669
'.Z': 'application/octet-stream',
670670
'.bz2': 'application/x-bzip2',
671671
'.xz': 'application/x-xz',
672+
'.wasm': 'application/wasm',
672673
}
673674

674675
def __init__(self, *args, directory=None, **kwargs):
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added wasm MIME type to
2+
:attr:`http.server.SimpleHTTPRequestHandler.extensions_map`.

0 commit comments

Comments
 (0)