[mod_accesslog] flag high precision ts for %T (fixes #2807)
flag high precision ts for %T after parsing %{xxx}T config x-ref: "%D and %{UNIT}T of mod_accesslog do not work as expected" https://redmine.lighttpd.net/issues/2807
This commit is contained in:
parent
45bb2c1f59
commit
b23065e547
|
@ -579,8 +579,6 @@ SETDEFAULTS_FUNC(log_access_open) {
|
|||
f->opt |= FORMAT_FLAG_TIME_USEC;
|
||||
srv->srvconf.high_precision_timestamps = 1;
|
||||
} else if (FORMAT_TIME_USED == f->field) {
|
||||
if (f->opt & ~(FORMAT_FLAG_TIME_SEC)) srv->srvconf.high_precision_timestamps = 1;
|
||||
|
||||
if (buffer_string_is_empty(f->string)
|
||||
|| buffer_is_equal_string(f->string, CONST_STR_LEN("s"))
|
||||
|| buffer_is_equal_string(f->string, CONST_STR_LEN("sec"))) f->opt |= FORMAT_FLAG_TIME_SEC;
|
||||
|
@ -596,6 +594,8 @@ SETDEFAULTS_FUNC(log_access_open) {
|
|||
|
||||
return HANDLER_ERROR;
|
||||
}
|
||||
|
||||
if (f->opt & ~(FORMAT_FLAG_TIME_SEC)) srv->srvconf.high_precision_timestamps = 1;
|
||||
} else if (FORMAT_COOKIE == f->field) {
|
||||
if (buffer_string_is_empty(f->string)) f->type = FIELD_STRING; /*(blank)*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue