Title: gh-100474: Fix handling of dirs named index.html in http.server by Fraetor · Pull Request #100475 · python/cpython · GitHub
Open Graph Title: gh-100474: Fix handling of dirs named index.html in http.server by Fraetor · Pull Request #100475 · python/cpython
X Title: gh-100474: Fix handling of dirs named index.html in http.server by Fraetor · Pull Request #100475 · python/cpython
Description: 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. Issue: gh-100474 Automerge-Triggered-By: GH:merwok
Open Graph Description: 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 che...
X Description: 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 che...
Opengraph URL: https://github.com/python/cpython/pull/100475
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f8f2157f-319d-be98-ab03-a90f131b5e61 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 883A:234FAD:5A4A00:7B7D7D:69694D93 |
| html-safe-nonce | 6c514fdf87c5c79f00f656ac55b5bef53db1b67f8524a00604c2e5aa98f286e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODNBOjIzNEZBRDo1QTRBMDA6N0I3RDdEOjY5Njk0RDkzIiwidmlzaXRvcl9pZCI6IjU5OTYxMDE5NDAwNTY3NTQxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7b82226bd4f01ba2fc1bd32f4df91ed03c7ed3ef3d326cb9a9ac96af54d5709 |
| hovercard-subject-tag | pull_request:1176823002 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/100475/files |
| twitter:image | https://avatars.githubusercontent.com/u/38766515?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/38766515?s=400&v=4 |
| og:image:alt | 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 che... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width