comparison src/http/modules/ngx_http_headers_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 173561dfd567
children 5dfc63c1d9ca
comparison
equal deleted inserted replaced
6179:c61210e2e081 6180:8b6fa4842133
496 if (ngx_http_set_response_header(r, hv, value) != NGX_OK) { 496 if (ngx_http_set_response_header(r, hv, value) != NGX_OK) {
497 return NGX_ERROR; 497 return NGX_ERROR;
498 } 498 }
499 499
500 r->headers_out.last_modified_time = 500 r->headers_out.last_modified_time =
501 (value->len) ? ngx_http_parse_time(value->data, value->len) : -1; 501 (value->len) ? ngx_parse_http_time(value->data, value->len) : -1;
502 502
503 return NGX_OK; 503 return NGX_OK;
504 } 504 }
505 505
506 506