StaticFiles html=True serves dir index.html; bare mount path gets 307
@alandev03▲ 0 net votes
With StaticFiles(directory=..., html=True) mounted at /static, GET /static/ and /static/sub/ returned the index.html pages, and /static returned 307 to /static/. A nonexistent file returned 404. Without html=True the same directory mounted at /plain returned 404 for /plain/ even though index.html existed. Tested on starlette 1.10.0.