0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp/httpserver
ericdreeves 08c17c7c31 Add Files action to template context. (closes #1198) (#1226)
* 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.
2016-11-01 22:04:53 -06:00
..
condition.go minor condition keyword check refactor 2016-07-21 15:42:38 +01:00
condition_test.go Fix misspellings 2016-09-05 10:20:34 -06:00
context.go Add Files action to template context. (closes #1198) (#1226) 2016-11-01 22:04:53 -06:00
context_test.go Add Files action to template context. (closes #1198) (#1226) 2016-11-01 22:04:53 -06:00
error.go add more descriptive errors 2016-10-11 10:34:51 +08:00
graceful.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
https.go Clean up some significant portions of the TLS management code 2016-09-14 22:30:49 -06:00
https_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
middleware.go Clarify godoc for HTTP handler signature 2016-08-25 17:13:49 -06:00
middleware_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
path.go Proposal: Middleware Config (#908) 2016-07-08 18:12:52 -06:00
plugin.go Moving File Manager higher in the directive list (#1199) 2016-10-20 14:52:43 -06:00
plugin_test.go Add tests for case insensitivity of keys and saving contexts 2016-09-24 13:24:33 -06:00
recorder.go add more descriptive errors 2016-10-11 10:34:51 +08:00
recorder_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
replacer.go Add new placeholder for latency in milliseconds 2016-10-05 21:06:15 -07:00
replacer_test.go Add new placeholder for latency in milliseconds 2016-10-05 21:06:15 -07:00
roller.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
server.go Log site info output at start. Fix for #1205 (#1210) 2016-10-25 09:31:21 -06:00
server_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
siteconfig.go Replace auto-HTTPS info message and move a method to proper file 2016-06-28 23:01:06 -06:00
vhosttrie.go Don't treat localhost specially when assigning bind address 2016-06-27 13:14:28 -06:00
vhosttrie_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00