summaryrefslogtreecommitdiff
path: root/caddyconfig
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-06-16 14:28:34 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-06-16 14:28:34 -0600
commite8ae80adca5db7102e646954fcc53827732ceb83 (patch)
tree8c41b80806dee6ffc1a84bfca3d57e576add0d22 /caddyconfig
parent32c284b54a77b6c4d3b38485ac2b6484c783b825 (diff)
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.
Diffstat (limited to 'caddyconfig')
0 files changed, 0 insertions, 0 deletions