[issue32628] Add configurable DirectoryIndex to http.server

2019-05-31 Thread Erik Paulson
Erik Paulson added the comment: I think my use case was Sharepoint and static site generators - Sharepoint can serve a tree of .aspx files as raw HTML, but maddeningly not .html files. The site generator we used spit out a fairly complicated site where the internal links point at

[issue32628] Add configurable DirectoryIndex to http.server

2019-05-31 Thread Berker Peksag
Berker Peksag added the comment: Thank you for the report and for the patch! What's your use case? I understand the need for it for httpd, but as someone who uses http.server daily, I can't think of a use case that I'd find this feature useful. Note that even the example in your message and

[issue32628] Add configurable DirectoryIndex to http.server

2018-01-24 Thread Erik Paulson
Change by Erik Paulson : -- keywords: +patch pull_requests: +5155 stage: -> patch review ___ Python tracker ___

[issue32628] Add configurable DirectoryIndex to http.server

2018-01-22 Thread Erik Paulson
New submission from Erik Paulson : In http.server and SimpleHTTPRequestHandler - the send_head function is hard-coded to treat index.html and index.htm as files to return in a directory - if neither of those files are present, it lists the directory. It would be very