FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100504) by miss-islington · Pull Request #100504 · python/cpython · GitHub

/ cpython Public

[3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100504) - #100504

Merged
merwok merged 1 commit into
python:3.10from
miss-islington:backport-46e6a28-3.10
Dec 24, 2022
Merged

[3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100504)#100504
merwok merged 1 commit into
python:3.10from
miss-islington:backport-46e6a28-3.10

Conversation

miss-islington commented Dec 24, 2022
edited by merwok
Loading

Copy link
Copy Markdown
Contributor

If you had a directory called index.html or index.htm within a directory, it would cause http.server
to return a 404 Not Found error instead of the directory listing. This came about due to not checking
that the index was a regular file.

(cherry picked from commit 46e6a28)

Co-authored-by: James Frost git@frost.cx

…pythonGH-100475)

If you had a directory called index.html or index.htm within a directory, it would cause http.server to return a 404 Not Found error instead of the directory listing. This came about due to not checking that the index was a regular file.

I have also added a test case for this situation.
(cherry picked from commit 46e6a28)

Co-authored-by: James Frost <git@frost.cx>
Automerge-Triggered-By: GH:merwok
merwok changed the title [3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100475) [3.10] gh-100474: Fix handling of dirs named index.html in http.server (GH-100504) Dec 24, 2022
merwok merged commit ecbf136 into python:3.10 Dec 24, 2022

Copy link
Copy Markdown

GH-100504 is a backport of this pull request to the 3.10 branch.

miss-islington deleted the backport-46e6a28-3.10 branch December 24, 2022 20:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL