]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91219: Add an index_pages default list and parameter to SimpleHTTPRequestHandler...
authorMyron Walker <myron.walker@hotmail.com>
Thu, 23 Jun 2022 20:30:44 +0000 (16:30 -0400)
committerGitHub <noreply@github.com>
Thu, 23 Jun 2022 20:30:44 +0000 (13:30 -0700)
commit9a95fa9267590c6cc66f215cd9808905fda1ee25
tree624141552801a632836f4139642b855c353a4640
parent4e796f56465f7264ddba63c8396d2649e098b617
gh-91219: Add an index_pages default list and parameter to SimpleHTTPRequestHandler (GH-31985)

* Add an index_pages default list to SimpleHTTPRequestHandler and an
optional constructor parameter that allows the default indexes pages
list to be overridden.  This makes it easy to set a new index page name
without having to override send_head.
Lib/http/server.py
Misc/NEWS.d/next/Library/2022-03-19-04-41-42.bpo-47063.nwRfUo.rst [new file with mode: 0644]