From b39937fc27adcdfcbedbf833dee3a9d089d8fdb5 Mon Sep 17 00:00:00 2001 From: donBarbos Date: Sat, 22 Feb 2025 03:24:16 +0400 Subject: [PATCH] Add .wasm files to `extensions_map` in `SimpleHTTPRequestHandler` --- Lib/http/server.py | 1 + .../next/Library/2025-02-22-03-23-47.gh-issue-106900.GXdQB7.rst | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2025-02-22-03-23-47.gh-issue-106900.GXdQB7.rst 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`.