0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp/httpserver
M-A 8464020f7c Add {whenISO} to record timestamp in ISO 8601 format in UTC. (#1353)
* Add {whenISO} to record timestamp in ISO 8601 format in UTC.

ISO 8601 is the standard time format and is easy to parse.

This change assumes users desiring ISO 8016 generally prefer UTC for simplicity.
This results in {whenISO} to be significantly shorter than {when}:
{when}    = "02/Jan/2006:15:04:05 +0000"
{whenISO} = "2006-01-02T15:04:12Z"

Add unit test to verify both, as there was no unit test for {when}.

* Rename {whenISO} to {when_iso}
2017-01-14 15:54:27 -07:00
..
condition.go Fix small misspellings 2017-01-10 13:09:24 -08:00
condition_test.go Fix misspellings 2016-09-05 10:20:34 -06:00
context.go templates: Add arguments to .Include 2016-11-20 21:40:06 -07:00
context_test.go Ensure some tests remove temporary directories they created 2016-11-28 22:26:54 -07:00
error.go add more descriptive errors 2016-10-11 10:34:51 +08:00
graceful.go
https.go Close connection on automatic HTTP->HTTPS redirects 2017-01-01 10:27:53 -07:00
https_test.go
middleware.go Clarify godoc for HTTP handler signature 2016-08-25 17:13:49 -06:00
middleware_test.go
path.go
pathcleaner.go Implementing custom PathClean function to allow masking, closes #1298 (#1317) 2016-12-31 20:29:14 -07:00
pathcleaner_test.go Implementing custom PathClean function to allow masking, closes #1298 (#1317) 2016-12-31 20:29:14 -07:00
plugin.go Fix position of "filter" in directives (#1323) 2017-01-03 09:03:13 -07: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
replacer.go Add {whenISO} to record timestamp in ISO 8601 format in UTC. (#1353) 2017-01-14 15:54:27 -07:00
replacer_test.go Add {whenISO} to record timestamp in ISO 8601 format in UTC. (#1353) 2017-01-14 15:54:27 -07:00
roller.go
server.go Implementing custom PathClean function to allow masking, closes #1298 (#1317) 2016-12-31 20:29:14 -07:00
server_test.go
siteconfig.go Add maxrequestbody directive (#1163) 2016-11-04 08:25:49 +08:00
vhosttrie.go
vhosttrie_test.go