GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SimpleHTTPRequestHandler has hard coded index page list. · Issue #91219 · python/cpython

SimpleHTTPRequestHandler has hard coded index page list. #91219

New issue
Copy link
New issue
Copy link
Closed
Closed
SimpleHTTPRequestHandler has hard coded index page list.#91219
Copy link
Labels
3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

myronww
mannequin
opened on Mar 19, 2022
Issue body actions
BPO 47063
Nosy @ethanfurman, @@myronww
PRs
  • bpo-47063 Add an index_pages default list and parameter to SimpleHTTPRequestHandler #31985
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2022-03-19.04:25:13.984>
    labels = ['type-feature', 'library', '3.11']
    title = 'SimpleHTTPRequestHandler has hard coded index page list.'
    updated_at = <Date 2022-03-21.14:36:32.938>
    user = 'https://github.com/myronww'

    bugs.python.org fields:

    activity = <Date 2022-03-21.14:36:32.938>
    actor = 'ethan.furman'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-03-19.04:25:13.984>
    creator = 'myronww'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 47063
    keywords = ['patch']
    message_count = 3.0
    messages = ['415534', '415535', '415683']
    nosy_count = 3.0
    nosy_names = ['ethan.furman', 'python-dev', 'myronww']
    pr_nums = ['31985']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue47063'
    versions = ['Python 3.11']

    Linked PRs

    • gh-91219: http - use subclassing to override index_pages attribute #100731

    Activity

    1. myronww commented on Mar 19, 2022

      @myronww
      myronwwmannequin
      on Mar 19, 2022
      MannequinAuthor
      More actions

      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.

    2. myronww
      added
      3.8 (EOL)end of lifeend of life
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancementA feature request or enhancement
      on Mar 19, 2022
    3. myronww commented on Mar 19, 2022

      @myronww
      myronwwmannequin
      on Mar 19, 2022
      MannequinAuthor
      More actions

      I am adding a Github PR for this issue.

    4. ethanfurman commented on Mar 21, 2022

      @ethanfurman
      ethanfurman
      on Mar 21, 2022
      Member
      More actions

      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.

    5. ethanfurman
      added
      3.11only security fixesonly security fixes
      and removed
      3.8 (EOL)end of lifeend of life
      on Mar 21, 2022
    6. ezio-melotti
      transferred this issue fromon Apr 10, 2022
    7. ethanfurman
      added a commit that references this issue on Jun 23, 2022

      gh-91219: Add an index_pages default list and parameter to SimpleHTTP…

      9a95fa9
    8. ethanfurman commented on Jun 23, 2022

      @ethanfurman
      ethanfurman
      on Jun 23, 2022
      Member
      More actions

      Committed into 3.12 code base.

    9. ethanfurman
      closed this as completedon Jun 23, 2022
    10. ethanfurman
      added
      3.12only security fixesonly security fixes
      and removed
      3.11only security fixesonly security fixes
      on Jun 23, 2022
    11. serhiy-storchaka
      added a commit that references this issue on Jun 26, 2022

      Revert 30935 defer bpo45162 to 312 (#94285)

      1ffde3e
    12. ethanfurman
      added a commit that references this issue on Jan 3, 2023

      gh-91219: http - use subclassing to override index_pages attribute (G…

      a286caa
    13. serhiy-storchaka
      marked Add configurable DirectoryIndex to http.server #76809 as a duplicate of this issue on Aug 13, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — GeezerVison does not store the pages you look up.
        Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.