:mod:`http.server` now checks that an index page is actually a regular file before trying to serve it. This avoids issues with directories named ``index.html``.