lpar / gzipped

Replacement for golang http.FileServer which supports precompressed static assets.
BSD 3-Clause "New" or "Revised" License
94 stars 15 forks source link

Doesn't serve index.html for ./ #3

Closed vith closed 5 years ago

lpar commented 5 years ago

This is as documented: "Directory browsing isn't supported". If you wanted to add directory browsing, or at least the subset required to locate index.html / index.html / Welcome.html, there's a comment at line 170 of fileserver.go marking the location. I generally feel URL remapping is better done with a wrapper.

vith commented 5 years ago

I read the caveat before trying it but in combination with the "drop-in replacement" phrase I read "browsing" to mean dynamically generated file listings (func dirList). Maybe it could use a slight clarification.

lpar commented 5 years ago

Fair enough, I've updated the README and included an example of how to get index.html support.