diff --git a/Lib/http/server.py b/Lib/http/server.py index a90c8d34c394db..de047aa540eb2f 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -669,6 +669,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): '.Z': 'application/octet-stream', '.bz2': 'application/x-bzip2', '.xz': 'application/x-xz', + '.wasm': 'application/wasm', } def __init__(self, *args, directory=None, **kwargs): diff --git a/Misc/NEWS.d/next/Library/2025-02-22-03-23-47.gh-issue-106900.GXdQB7.rst b/Misc/NEWS.d/next/Library/2025-02-22-03-23-47.gh-issue-106900.GXdQB7.rst new file mode 100644 index 00000000000000..b01e94b3b112bc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-02-22-03-23-47.gh-issue-106900.GXdQB7.rst @@ -0,0 +1,2 @@ +Added wasm MIME type to +:attr:`http.server.SimpleHTTPRequestHandler.extensions_map`.