net/http: allow customization of FileServer's directory HTML and styling #47838
Labels
FeatureRequest
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
go/src/net/http/fs.go
Lines 128 to 165 in e9e0d1e
The overarching purpose of the fileserver is to serve files in a safe way. But then it has this side effect of being able to generate a directory list. The directory list is a very basic PRE block with some A links. The code also sets the content-type. However, there is something missing.
At the very least please update the documentation to set the intent.
The text was updated successfully, but these errors were encountered: