Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_range_filter_module.c @ 6180:8b6fa4842133
Moved ngx_http_parse_time() to core, renamed accordingly.
The function is now called ngx_parse_http_time(), and can be used by
any code to parse HTTP-style date and time. In particular, it will be
used for OCSP stapling.
For compatibility, a macro to map ngx_http_parse_time() to the new name
provided for a while.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 11 Jun 2015 20:42:31 +0300 |
parents | 9653092a79fd |
children | 29f35e60840b |
comparison
equal
deleted
inserted
replaced
6179:c61210e2e081 | 6180:8b6fa4842133 |
---|---|
202 | 202 |
203 if (r->headers_out.last_modified_time == (time_t) -1) { | 203 if (r->headers_out.last_modified_time == (time_t) -1) { |
204 goto next_filter; | 204 goto next_filter; |
205 } | 205 } |
206 | 206 |
207 if_range_time = ngx_http_parse_time(if_range->data, if_range->len); | 207 if_range_time = ngx_parse_http_time(if_range->data, if_range->len); |
208 | 208 |
209 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 209 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
210 "http ir:%d lm:%d", | 210 "http ir:%d lm:%d", |
211 if_range_time, r->headers_out.last_modified_time); | 211 if_range_time, r->headers_out.last_modified_time); |
212 | 212 |