Mercurial > hg > nginx
comparison src/http/modules/ngx_http_dav_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 | 1f70fe0d9576 |
children | 2cd019520210 |
comparison
equal
deleted
inserted
replaced
6179:c61210e2e081 | 6180:8b6fa4842133 |
---|---|
253 ext.create_path = dlcf->create_full_put_path; | 253 ext.create_path = dlcf->create_full_put_path; |
254 ext.delete_file = 1; | 254 ext.delete_file = 1; |
255 ext.log = r->connection->log; | 255 ext.log = r->connection->log; |
256 | 256 |
257 if (r->headers_in.date) { | 257 if (r->headers_in.date) { |
258 date = ngx_http_parse_time(r->headers_in.date->value.data, | 258 date = ngx_parse_http_time(r->headers_in.date->value.data, |
259 r->headers_in.date->value.len); | 259 r->headers_in.date->value.len); |
260 | 260 |
261 if (date != NGX_ERROR) { | 261 if (date != NGX_ERROR) { |
262 ext.time = date; | 262 ext.time = date; |
263 ext.fd = r->request_body->temp_file->file.fd; | 263 ext.fd = r->request_body->temp_file->file.fd; |