mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
08c17c7c31
* Add Files action to template context. (#1198) * Fixes to testFiles(). - Set os.ModePerm on directories created during test. - Use filepath.Join() to create directory path. - Use Fatalf, not Fatal. * Make additional fixes to test cases. * Fix test cases to use correct path format. Dir.Open() in net/http requires '/'-separated paths while filepath.Join() may produce paths with different separator. * Remove directory created by test at end of loop. * Close the FileSystem before returning. * Initialize names slice to the number of entries. Also, do not call os.RemoveAll() unless the path to the directory is a valid one. |
||
---|---|---|
.. | ||
basicauth | ||
bind | ||
browse | ||
errors | ||
expvar | ||
extensions | ||
fastcgi | ||
gzip | ||
header | ||
httpserver | ||
internalsrv | ||
log | ||
markdown | ||
mime | ||
pprof | ||
proxy | ||
redirect | ||
rewrite | ||
root | ||
staticfiles | ||
status | ||
templates | ||
websocket | ||
caddyhttp.go | ||
caddyhttp_test.go |