]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135056: Add a `--header` CLI option to `http.server` (#135057)
authorAnton Ian Sipos <aisipos@gmail.com>
Sun, 3 May 2026 11:01:37 +0000 (04:01 -0700)
committerGitHub <noreply@github.com>
Sun, 3 May 2026 11:01:37 +0000 (13:01 +0200)
commit836fbdaaf32c355c7e8fb0af69f78fbbb28af8b1
treecfe4090b06bce296919b6a7fc541ea1d365aebf9
parent726a17e26541579b762ab2c9ee3ff201de777c35
gh-135056: Add a `--header` CLI option to `http.server` (#135057)

Support custom headers in `python -m http.server` and `http.server.SimpleHTTPRequestHandler`.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/library/http.server.rst
Doc/whatsnew/3.15.rst
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Library/2025-06-02-22-23-38.gh-issue-135056.yz3dSs.rst [new file with mode: 0644]