Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-09-11 | fileserver: Fix new file hide tests on Windows (#3719) | Matt Holt | |
2020-09-11 | fileserver: Improve file hiding logic for directories and prefixes | Matthew Holt | |
Now, a filename to hide that is specified without a path separator will count as hidden if it appears in any component of the file path (not only the last component); semantically, this means hiding a file by only its name (without any part of a path) will hide both files and folders, e.g. hiding ".git" will hide "/.git" and also "/.git/foo". We also do prefix matching so that hiding "/.git" will hide "/.git" and "/.git/foo" but not "/.gitignore". The remaining logic is a globular match like before. | |||
2019-10-15 | v2: Make tests work on Windows (#2782) | Matt Holt | |
* file_server: Make tests work on Windows * caddyfile: Fix escaping when character is not escapable We only escape certain characters depending on inside or outside of quotes (mainly newlines and quotes). We don't want everyone to have to escape Windows file paths like C:\\Windows\\... but we can't drop the \ either if it's just C:\Windows\... | |||
2019-06-30 | Add license | Matthew Holt | |
2019-05-20 | Default error handler; rename StaticFiles -> FileServer | Matthew Holt | |