Fixed a bug where a path ending with a slash doesn't default to the index.html file