SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72153 0 0 Python

gh-100474: Fix handling of dirs named index.html in http.server (GH-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.

Automerge-Triggered-By: GH:merwok
J
James Frost committed
46e6a28308def2c3a71c679a6fa4ed7d520802b9
Parent: 00afa50
Committed by GitHub <noreply@github.com> on 12/24/2022, 6:28:59 PM