0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp
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
..
basicauth basicauth: Remove Authorization header on successful authz (issue #1324) 2017-01-03 17:47:27 -07:00
bind Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
browse browse: Simple filter textbox for default template 2017-01-03 23:59:04 -07:00
errors errors: don't join the absolute file path 2016-10-18 09:55:50 +08:00
expvar Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
extensions Fix misspellings 2016-09-05 10:20:34 -06:00
fastcgi Re-align atomic struct field (fixes #1306) 2016-12-22 15:02:33 -07:00
gzip Add misspell to travis build 2017-01-10 15:39:00 -08:00
header Fix for #1164 - allow only one header per line (#1280) 2016-11-29 21:24:12 -07:00
httpserver Add {whenISO} to record timestamp in ISO 8601 format in UTC. (#1353) 2017-01-14 15:54:27 -07:00
internalsrv Enable downloading of protected content. See issue #979 (#980) 2016-08-07 23:16:33 -06:00
log Use proper Request (#1197) 2016-10-25 09:28:53 -06:00
markdown Fix for #1276 - support integers and floats as metadata in markdown (#1278) 2016-12-02 23:35:33 -07:00
maxrequestbody Add maxrequestbody directive (#1163) 2016-11-04 08:25:49 +08:00
mime Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
pprof Fix misspellings 2016-09-05 10:20:34 -06:00
proxy proxy: Added TestReverseProxyLargeBody test case 2017-01-11 19:38:52 +01:00
redirect Fix misspellings 2016-09-05 10:20:34 -06:00
rewrite Remove dead code, do struct alignment, simplify code 2016-10-25 19:19:54 +02:00
root Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
staticfiles Feature #1282 - Support serving statically compressed .gz and .br files (#1289) 2016-12-19 09:51:09 -07:00
status Add 'status' middleware instead of 'status' directive for 'rewrite' middleware 2016-08-29 17:17:23 +03:00
templates Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
websocket Fix misspellings 2016-09-05 10:20:34 -06:00
caddyhttp.go Add maxrequestbody directive (#1163) 2016-11-04 08:25:49 +08:00
caddyhttp_test.go Add maxrequestbody directive (#1163) 2016-11-04 08:25:49 +08:00