comparison src/http/modules/ngx_http_not_modified_filter_module.c @ 5729:bb3d74fc4aea

Not modified filter: debug log format fixed.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 26 Jun 2014 02:19:55 +0400
parents 5b93a9ac60ed
children af229f8cf987
comparison
equal deleted inserted replaced
5728:63d7d69d0fe4 5729:bb3d74fc4aea
116 116
117 iums = ngx_http_parse_time(r->headers_in.if_unmodified_since->value.data, 117 iums = ngx_http_parse_time(r->headers_in.if_unmodified_since->value.data,
118 r->headers_in.if_unmodified_since->value.len); 118 r->headers_in.if_unmodified_since->value.len);
119 119
120 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 120 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
121 "http iums:%d lm:%d", iums, r->headers_out.last_modified_time); 121 "http iums:%T lm:%T", iums, r->headers_out.last_modified_time);
122 122
123 if (iums >= r->headers_out.last_modified_time) { 123 if (iums >= r->headers_out.last_modified_time) {
124 return 1; 124 return 1;
125 } 125 }
126 126
142 142
143 ims = ngx_http_parse_time(r->headers_in.if_modified_since->value.data, 143 ims = ngx_http_parse_time(r->headers_in.if_modified_since->value.data,
144 r->headers_in.if_modified_since->value.len); 144 r->headers_in.if_modified_since->value.len);
145 145
146 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 146 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
147 "http ims:%d lm:%d", ims, r->headers_out.last_modified_time); 147 "http ims:%T lm:%T", ims, r->headers_out.last_modified_time);
148 148
149 if (ims == r->headers_out.last_modified_time) { 149 if (ims == r->headers_out.last_modified_time) {
150 return 0; 150 return 0;
151 } 151 }
152 152