expressjs.com
expressjs.com copied to clipboard
Incorrect default value for dotfiles in docs for express.static
I think the default value mentioned at https://github.com/expressjs/expressjs.com/blob/gh-pages/_includes/api/en/4x/express.static.md#expressstaticroot-options is incorrect. It says in the table that the default value is 'ignore', but in the detailed docs at https://github.com/expressjs/expressjs.com/blob/gh-pages/_includes/api/en/4x/express.static.md#dotfiles which are linked in the table, it says this:
With the default value, it will not ignore files in a directory that begins with a dot.
The actual default value seems to be 'allow'.
(The docs for v5 have the same table with the same default value but I don't know whether the behavior changed for v5.)