0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/modules/caddyhttp/fileserver
Matthew Holt e8ae80adca
fileserver: Don't persist parsed template (fix #4202)
Templates are parsed at request-time (like they are in the templates middleware) to allow live changes to the template while the server is running. Fixes race condition.

Also refactored use of a buffer so a buffer put back in the pool will not continue to be used (written to client) in the meantime.

A couple of benchmarks removed due to refactor, which is fine, since we know pooling helps here.
2021-06-16 14:28:34 -06:00
..
testdata fileserver: Fix try_files for directories; windows fix (#3684) 2020-09-16 18:09:28 -06:00
browse.go fileserver: Don't persist parsed template (fix #4202) 2021-06-16 14:28:34 -06:00
browsetpl.go fileserver: Browse listing supports dark mode (#4066) 2021-03-19 11:41:02 -06:00
browsetplcontext.go fileserver: Share template logic for both templates and file_server browse (#4093) 2021-04-30 22:17:23 -04:00
browsetplcontext_test.go fileserver: Share template logic for both templates and file_server browse (#4093) 2021-04-30 22:17:23 -04:00
caddyfile.go fileserver: Add status code override (#4076) 2021-04-08 11:09:12 -06:00
command.go cmd: file-server: add --access-log flag (#3454) 2020-05-26 15:04:04 -06:00
matcher.go fileserver: Fix file matcher with empty try_files (#4147) 2021-05-04 09:49:13 -06:00
matcher_test.go fastcgi: Set PATH_INFO to file matcher remainder as fallback (#3739) 2020-12-04 17:12:13 -07:00
staticfiles.go fileserver: Don't persist parsed template (fix #4202) 2021-06-16 14:28:34 -06:00
staticfiles_test.go fileserver: Improve and clarify file hiding logic (#3844) 2020-11-02 14:20:12 -07:00