This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: SimpleHTTPRequestHandler has hard coded index page list.
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ethan.furman, myronww, python-dev
Priority: normal Keywords: patch

Created on 2022-03-19 04:25 by myronww, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 31985 open python-dev, 2022-03-19 04:28
Messages (3)
msg415534 - (view) Author: Myron Walker (myronww) * Date: 2022-03-19 04:25
SimpleHTTPRequestHandler has hard coded index page list in the send_head method.  The fixed hard-coded list means that if you want to have a custom index page that is not named "index.htm" or "index.html" then you have to override the send_head method.  There is alot of code in send_head so overriding it is not optimal just to have a custom indexer filename.
msg415535 - (view) Author: Myron Walker (myronww) * Date: 2022-03-19 04:27
I am adding a Github PR for this issue.
msg415683 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2022-03-21 14:36
`index.htm[l]` is pretty standard for the name of the index page.  What's your use-case for wanting different names?  Keep in mind that the word `Simple` is in the name for a reason.
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91219
2022-03-21 14:36:32ethan.furmansetnosy: + ethan.furman

messages: + msg415683
versions: + Python 3.11, - Python 3.8
2022-03-19 04:28:01python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request30076
stage: patch review
2022-03-19 04:27:07myronwwsetmessages: + msg415535
2022-03-19 04:25:13myronwwcreate