diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2015-06-11 20:42:31 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2015-06-11 20:42:31 +0300 |
commit | 9984f3053f7c7f027aae9188111c4571962ff90c (patch) | |
tree | 8b8ad9c738f2a637e0cdd2e97fd9b8a180b1c2bb /src/http/ngx_http_core_module.c | |
parent | dd41bfd47a139a3fb4307f16faab7cdcbd8b1041 (diff) | |
download | nginx-9984f3053f7c7f027aae9188111c4571962ff90c.tar.gz nginx-9984f3053f7c7f027aae9188111c4571962ff90c.zip |
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.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index f5255265e..d423d8b80 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2195,7 +2195,7 @@ ngx_http_gzip_ok(ngx_http_request_t *r) return NGX_DECLINED; } - expires = ngx_http_parse_time(e->value.data, e->value.len); + expires = ngx_parse_http_time(e->value.data, e->value.len); if (expires == NGX_ERROR) { return NGX_DECLINED; } @@ -2203,7 +2203,7 @@ ngx_http_gzip_ok(ngx_http_request_t *r) d = r->headers_out.date; if (d) { - date = ngx_http_parse_time(d->value.data, d->value.len); + date = ngx_parse_http_time(d->value.data, d->value.len); if (date == NGX_ERROR) { return NGX_DECLINED; } |